GenericStruct() 정적인 개인적인 메소드

static private GenericStruct ( Rect position, UnityEditor.SerializedProperty property ) : void
position UnityEngine.Rect
property UnityEditor.SerializedProperty
리턴 void
예제 #1
0
        internal static void GenericStruct(SerializedProperty property, params GUILayoutOption[] options)
        {
            float num  = 16f + 16f * (float)StructPropertyGUILayout.GetChildrenCount(property);
            Rect  rect = GUILayoutUtility.GetRect(EditorGUILayout.kLabelFloatMinW, EditorGUILayout.kLabelFloatMaxW, num, num, EditorStyles.layerMaskField, options);

            StructPropertyGUI.GenericStruct(rect, property);
        }
예제 #2
0
        internal static void GenericStruct(SerializedProperty property, params GUILayoutOption[] options)
        {
            float height = EditorGUI.kStructHeaderLineHeight + EditorGUI.kSingleLineHeight * GetChildrenCount(property);
            Rect  rect   = GUILayoutUtility.GetRect(EditorGUILayout.kLabelFloatMinW, EditorGUILayout.kLabelFloatMaxW,
                                                    height, height, EditorStyles.layerMaskField, options);

            StructPropertyGUI.GenericStruct(rect, property);
        }
예제 #3
0
 internal static void JointSpring(Rect position, SerializedProperty property)
 {
     StructPropertyGUI.GenericStruct(position, property);
 }
예제 #4
0
 internal static void WheelFrictionCurve(Rect position, SerializedProperty property)
 {
     StructPropertyGUI.GenericStruct(position, property);
 }
        internal static void GenericStruct(SerializedProperty property, params GUILayoutOption[] options)
        {
            float minHeight = 16f + (16f * GetChildrenCount(property));

            StructPropertyGUI.GenericStruct(GUILayoutUtility.GetRect(EditorGUILayout.kLabelFloatMinW, EditorGUILayout.kLabelFloatMaxW, minHeight, minHeight, EditorStyles.layerMaskField, options), property);
        }