C# Класс FullInspector.Internal.fiPrefabTools

Utility functions for working with prefab overrides.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
ContainsPropertyName ( string propertyPath, string propertyName ) : bool

Returns true if the period separate property path contains the given property name.

TryExtractPropertyName ( ISerializedObject obj, PropertyModification mod, string &keyName ) : bool

Attempts to extract the name of serialized key for the given property modification.

Описание методов

HasPrefabDiff() публичный статический Метод

Returns true if the given property on the given object instance has a prefab override.
Currently, this method only works for MonoBehavior targets.
public static HasPrefabDiff ( object instance, FullInspector.Internal.InspectedProperty property ) : bool
instance object The object instance.
property FullInspector.Internal.InspectedProperty The property to check.
Результат bool

RevertValue() публичный статический Метод

Reverts the given property on the instance to the prefab value.
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.
Результат void