C# Класс Forge.Editing.DataInspectorView

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DrawDataInspector ( IQueryableEntity entity, Type dataType, GameObject context ) : void
DrawSceneGUI ( Data data, GameObject context ) : void

Приватные методы

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

Описание методов

DrawDataInspector() публичный Метод

public DrawDataInspector ( IQueryableEntity entity, Type dataType, GameObject context ) : void
entity IQueryableEntity
dataType System.Type
context UnityEngine.GameObject
Результат void

DrawSceneGUI() публичный Метод

public DrawSceneGUI ( Data data, GameObject context ) : void
data Data
context UnityEngine.GameObject
Результат void