Forge/Editor/DataWindow.cs
/// <summary>
/// Called when we have an entity to inspect.
/// </summary>
Called when we have an entity to inspect.
Called when we have an entity to inspect .
private void DrawInspector(IQueryableEntity entity, GameObject context) {
            _inspectorScroll = EditorGUILayout.BeginScrollView(_inspectorScroll);
            EditorGUILayout.LabelField("Metadata", ForgeEditorUtils.HeaderStyle);
            entity.PrettyName = EditorGUILayout.TextField("Pretty Name", entity.PrettyName);
            if (GUI.changed) {
                BaseContainer container = context.GetComponent<BaseContainer>();
                container.UpdateName();
            }
            ForgeEditorUtils.DrawSeperator();
            foreach (DataAccessor accessor in entity.SelectData( true)) {
                Type dataType = entity.Current(accessor).GetType();
                _dataInspectorView.DrawDataInspector(entity, dataType, context);
                ForgeEditorUtils.DrawSeperator();
            }
            DrawAddData(entity);
            EditorGUILayout.EndScrollView();
        }
private void DrawInspector ( IQueryableEntity entity , GameObject context ) { _inspectorScroll = EditorGUILayout . BeginScrollView ( _inspectorScroll ) ; EditorGUILayout . LabelField ( " " , ForgeEditorUtils . HeaderStyle ) ; entity . PrettyName = EditorGUILayout . TextField ( " " , entity . PrettyName ) ; if ( GUI . changed ) { BaseContainer container = context . GetComponent < BaseContainer > ( ) ; container . UpdateName ( ) ; } ForgeEditorUtils . DrawSeperator ( ) ; foreach ( DataAccessor accessor in entity . SelectData ( true ) ) { Type dataType = entity . Current ( accessor ) . GetType ( ) ; _dataInspectorView . DrawDataInspector ( entity , dataType , context ) ; ForgeEditorUtils . DrawSeperator ( ) ; } DrawAddData ( entity ) ; EditorGUILayout . EndScrollView ( ) ; }
Called when we have an entity to inspect.
Called when we have an entity to inspect .
/*includeRemoved:*/
entity
IQueryableEntity
context
GameObject