Пример #1
0
        public override void OnInspectorGUI()
        {
            Init();
            serializedObject.Update();

            using (new EditorGUI.DisabledScope(true))
            {
                EditorGUILayout.PropertyField(GetProperty("m_Script"), true);
            }

            var height   = m_Helper.GetHeight(GetProperty, s_Label);
            var position = EditorGUILayout.GetControlRect(false, height);

            if (m_Helper.DoGUI(GetProperty, position, s_Label))
            {
                serializedObject.ApplyModifiedProperties();
            }
        }
Пример #2
0
 public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
 {
     Init(property);
     return(m_Helper.GetHeight(GetProperty, label));
 }