コード例 #1
0
        public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
        {
            Begin(position, property, label);

            model                  = target as Model;
            physicsOptions         = model.physicsOptions;
            physicsOptionsProperty = property;

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

            ShowPhysicsOptions();

            height = currentPosition.y - position.y;

            End();
        }
コード例 #2
0
		public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) {
			Begin(position, property, label);
			
			model = target as Model;
			physicsOptions = model.physicsOptions;
			physicsOptionsProperty = property;
			physicsOptionsProperty.isExpanded = true;
			
			currentPosition.height = lineHeight;
			EditorGUI.LabelField(currentPosition, physicsOptionsProperty.displayName, new GUIStyle("boldLabel"));
			currentPosition.y += currentPosition.height + 2;
			
			ShowPhysicsOptions();
			
			height = currentPosition.y - position.y;
			
			End();
		}