PropertyStats Class Reference

This class extracts and cashes various properties of a given SerializedProperty along with how large it will be drawn.

Public Member Functions

override string ToString ()
 Used to display the stats collected about the property, for debugging purposes.
 

Static Public Member Functions

static PropertyStats GetStatsOfProperty (SerializedProperty property, PropertyDrawer drawerInstance=null, GUIContent label=null)
 This function is used to Generate a PertyStats instance, for the provided
 

Public Attributes

bool containerIsPersistent
 Specified if the object containing the SerilaztedProperty is a saved Asset.
 
System.Type customPropertyDrawerType
 The type of custom property draw, if one exists, that is used to display the serializedProperty
 
System.Type fieldType
 The type of the object referenced by the SerializedProperty
 
bool hasACustomPropertyDrawer
 True if the user or Unity has defined a custom properly drawer for this type of Object
 
bool hasACustomPropertyDrawerDerivedFromExpandableObjectPropertyDrawer
 True if the custom property drawer defined for this class is derived from the ExpandablePropertyDrawer class.
 
bool hasADefultConstructor
 Determines whether the object reference by the SerializedProperty
 
bool hasDetailsToDisplay
 True when the serialized property contains multiple elements or values to display.
 
bool isAnObjectReference
 Specifies if the value stored in the SerializedPreoperty is n object reference, or a value.
 
bool isANonNullReference
 Specifies if the object referenced by the SerializedProperty actually exists.
 
bool isASaveableObjectReference
 Specifies if the object referenced is actually a type of Asset that can saved, or not.
 
bool isASavedAsset
 Specifies if the object referenced by the SerializedProperty is a saved asset.
 
string propertyName
 The name of the SerializedProperty