C# 클래스 FullInspector.Internal.TypeDropdownOptionsManager

Manages the options that are displayed to the user in the instance selection drop-down.
파일 보기 프로젝트 열기: jacobdufault/fullinspector 1 사용 예제들

공개 메소드들

메소드 설명
GetDisplayOptionIndex ( object instance ) : int

Returns the index of the option that should be displayed (from GetDisplayOptions()) based on the current object instance.

GetDisplayOptions ( ) : UnityEngine.GUIContent[]

Returns an array of options that should be displayed.

GetIndexForType ( Type type ) : int
GetTypeForIndex ( int index, Type existingValue ) : Type
RemoveExtraneousOptions ( ) : void

Remove any options from the set of display options that are not permanently visible.

TypeDropdownOptionsManager ( Type baseType, bool allowUncreatableTypes ) : System

Setup the instance option manager for the given type.

UpdateObjectInstance ( object current, int currentIndex, int updatedIndex ) : object

Changes the instance of the given object, if necessary.

비공개 메소드들

메소드 설명
GetOptionName ( FullInspector.Internal.fiReflectionUtility.DisplayedType type, bool addSkipCtorMessage ) : GUIContent

메소드 상세

GetDisplayOptionIndex() 공개 메소드

Returns the index of the option that should be displayed (from GetDisplayOptions()) based on the current object instance.
public GetDisplayOptionIndex ( object instance ) : int
instance object
리턴 int

GetDisplayOptions() 공개 메소드

Returns an array of options that should be displayed.
public GetDisplayOptions ( ) : UnityEngine.GUIContent[]
리턴 UnityEngine.GUIContent[]

GetIndexForType() 공개 메소드

public GetIndexForType ( Type type ) : int
type System.Type
리턴 int

GetTypeForIndex() 공개 메소드

public GetTypeForIndex ( int index, Type existingValue ) : Type
index int
existingValue System.Type
리턴 System.Type

RemoveExtraneousOptions() 공개 메소드

Remove any options from the set of display options that are not permanently visible.
public RemoveExtraneousOptions ( ) : void
리턴 void

TypeDropdownOptionsManager() 공개 메소드

Setup the instance option manager for the given type.
public TypeDropdownOptionsManager ( Type baseType, bool allowUncreatableTypes ) : System
baseType System.Type
allowUncreatableTypes bool
리턴 System

UpdateObjectInstance() 공개 메소드

Changes the instance of the given object, if necessary.
public UpdateObjectInstance ( object current, int currentIndex, int updatedIndex ) : object
current object
currentIndex int
updatedIndex int
리턴 object