C# 클래스 FullInspector.Internal.fiPrefabTools

Utility functions for working with prefab overrides.
파일 보기 프로젝트 열기: jacobdufault/fullinspector

공개 메소드들

메소드 설명
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