C# Class Forge.Editing.DataInspectorView

Mostrar archivo Open project: jacobdufault/forge-unity Class Usage Examples

Public Methods

Method Description
DrawDataInspector ( IQueryableEntity entity, Type dataType, GameObject context ) : void
DrawSceneGUI ( Data data, GameObject context ) : void

Private Methods

Method Description
CanEditPrevious ( IQueryableEntity entity, Type dataType ) : bool

Returns true if the given data type has a previous instance that can be edited for the given entity.

GetDataHeader ( Type dataType, IQueryableEntity queryableEntity, DataEditState editState ) : string

Returns the data header that should be shown above the data type.

GetEditState ( IQueryableEntity entity, Type dataType ) : DataEditState

Returns the current editing state for the given data type in the given entity.

GetEditedData ( IQueryableEntity entity, DataEditState editState, Type dataType ) : Data.IData

Returns the data instance that should be edited based on the given edit state and data type.

IsHidden ( IQueryableEntity entity, Type dataType ) : bool
RemoveData ( IQueryableEntity entity, Type dataType ) : void

Removes the given data type from the entity.

SetEditState ( IQueryableEntity entity, Type dataType, DataEditState value ) : void

Sets the editing state for the given data type in the given entity to the given value.

SetHidden ( IQueryableEntity entity, Type dataType, bool value ) : void

Method Details

DrawDataInspector() public method

public DrawDataInspector ( IQueryableEntity entity, Type dataType, GameObject context ) : void
entity IQueryableEntity
dataType System.Type
context UnityEngine.GameObject
return void

DrawSceneGUI() public method

public DrawSceneGUI ( Data data, GameObject context ) : void
data Data
context UnityEngine.GameObject
return void