Beispiel #1
0
        private void SetMembers(Rect rect)
        {
            EditorGUILayout.Space();
            EditorGUILayout.LabelField($"{type.Name}", EditorStyles.boldLabel);

            if (serializedEvent.DrawEditorGUILayout())
            {
                serializedEvent.Serialize(target, eventDataProperty);
            }
        }
            private void DrawInspector(Rect rect)
            {
                GUILayout.BeginArea(rect);
                GUILayout.Label("Inspector", StratusGUIStyles.header);

                if (hasSelection)
                {
                    if (currentNodes.Count == 1)
                    {
                        GUILayout.Label(currentNode.dataTypeName, EditorStyles.largeLabel);
                        this.inspectorScrollPosition = EditorGUILayout.BeginScrollView(this.inspectorScrollPosition, GUI.skin.box);
                        currentNodeSerializedObject.DrawEditorGUILayout();
                        EditorGUILayout.EndScrollView();
                    }
                    else
                    {
                        GUILayout.Label("Editing multiple nodes is not supported!", EditorStyles.largeLabel);
                    }
                }

                GUILayout.EndArea();
            }