Beispiel #1
0
        public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
        {
            Begin(position, property, label);

            model                 = target as Model;
            renderOptions         = model.renderOptions;
            renderOptionsProperty = property;

            currentPosition.height = lineHeight;
            EditorGUI.LabelField(currentPosition, renderOptionsProperty.displayName, new GUIStyle("boldLabel"));
            currentPosition.y += currentPosition.height + 2;

            ShowRenderOptions();

            End();
        }
		public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) {
			Begin(position, property, label);
			
			model = target as Model;
			renderOptions = model.renderOptions;
			renderOptionsProperty = property;
			renderOptionsProperty.isExpanded = true;
			
			currentPosition.height = lineHeight;
			EditorGUI.LabelField(currentPosition, renderOptionsProperty.displayName, new GUIStyle("boldLabel"));
			currentPosition.y += currentPosition.height + 2;
			
			ShowRenderOptions();
			
			End();
		}