Example #1
0
        public override void OnBodyGUI()
        {
            base.OnBodyGUI();
            serializedObject.Update();
            try
            {
                if (!shapeNode.IsShapeCurrent() && GUILayout.Button("Generate"))
                {
                    shapeNode.RecursiveGenerate();
                }
            }
            catch (ArgumentException)
            {
                // ignored
            }

            serializedObject.ApplyModifiedProperties();
        }