C# Class FullInspector.Internal.TypeDropdownOptionsManager

Manages the options that are displayed to the user in the instance selection drop-down.
Afficher le fichier Open project: jacobdufault/fullinspector Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
GetOptionName ( FullInspector.Internal.fiReflectionUtility.DisplayedType type, bool addSkipCtorMessage ) : GUIContent

Method Details

GetDisplayOptionIndex() public méthode

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
Résultat int

GetDisplayOptions() public méthode

Returns an array of options that should be displayed.
public GetDisplayOptions ( ) : UnityEngine.GUIContent[]
Résultat UnityEngine.GUIContent[]

GetIndexForType() public méthode

public GetIndexForType ( Type type ) : int
type System.Type
Résultat int

GetTypeForIndex() public méthode

public GetTypeForIndex ( int index, Type existingValue ) : Type
index int
existingValue System.Type
Résultat System.Type

RemoveExtraneousOptions() public méthode

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

TypeDropdownOptionsManager() public méthode

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

UpdateObjectInstance() public méthode

Changes the instance of the given object, if necessary.
public UpdateObjectInstance ( object current, int currentIndex, int updatedIndex ) : object
current object
currentIndex int
updatedIndex int
Résultat object