Method | Description | |
---|---|---|
HasPrefabDiff ( object instance, FullInspector.Internal.InspectedProperty property ) : bool |
Returns true if the given property on the given object instance has a prefab override. Currently, this method only works for MonoBehavior targets. |
|
RevertValue ( object instance, FullInspector.Internal.InspectedProperty property ) : void |
Reverts the given property on the instance to the prefab value.
|
Method | Description | |
---|---|---|
ContainsPropertyName ( string propertyPath, string propertyName ) : bool |
Returns true if the period separate property path contains the given property name.
|
|
TryExtractPropertyName ( ISerializedObject obj, |
Attempts to extract the name of serialized key for the given property modification.
|
public static HasPrefabDiff ( object instance, FullInspector.Internal.InspectedProperty property ) : bool | ||
instance | object | The object instance. |
property | FullInspector.Internal.InspectedProperty | The property to check. |
return | bool |
public static RevertValue ( object instance, FullInspector.Internal.InspectedProperty property ) : void | ||
instance | object | /// The prefab instance to revert the value on. /// |
property | FullInspector.Internal.InspectedProperty | The property to revert. |
return | void |