Ejemplo n.º 1
0
        public override void OnInspectorGUI()
        {
            // Update object
            serializedObject.Update();

            // Make all EditorGUI look like regular controls
            EditorGUIUtility.LookLikeControls();

            // Draw property
            UnityEditorUtility.DrawSerializableObject(serializedObject);

            // Apply modifications
            if (GUI.changed)
            {
                serializedObject.ApplyModifiedProperties();
            }
        }