Пример #1
0
 private void OnEnable()
 {
     m_CellSize    = serializedObject.FindProperty("m_CellSize");
     m_CellGap     = serializedObject.FindProperty("m_CellGap");
     m_CellSwizzle = serializedObject.FindProperty("m_CellSwizzle");
     SceneViewGridManager.FlushCachedGridProxy();
 }
Пример #2
0
 public override void OnInspectorGUI()
 {
     base.serializedObject.Update();
     EditorGUILayout.PropertyField(this.m_CellSize, new GUILayoutOption[0]);
     EditorGUILayout.PropertyField(this.m_CellGap, new GUILayoutOption[0]);
     EditorGUILayout.PropertyField(this.m_CellSwizzle, new GUILayoutOption[0]);
     if (base.serializedObject.ApplyModifiedProperties())
     {
         SceneViewGridManager.FlushCachedGridProxy();
     }
 }
Пример #3
0
        public override void OnInspectorGUI()
        {
            serializedObject.Update();

            EditorGUILayout.PropertyField(m_CellSize);
            EditorGUILayout.PropertyField(m_CellGap);
            EditorGUILayout.PropertyField(m_CellSwizzle);

            if (serializedObject.ApplyModifiedProperties())
            {
                SceneViewGridManager.FlushCachedGridProxy();
            }
        }