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

Manages the options that are displayed to the user in the instance selection drop-down.
Показать файл Открыть проект Примеры использования класса

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

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