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);
        }
Esempio n. 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);
        }
Esempio n. 3
0
 internal static void JointSpring(Rect position, SerializedProperty property)
 {
     StructPropertyGUI.GenericStruct(position, property);
 }
Esempio n. 4
0
 internal static void GenericStruct(Rect position, SerializedProperty property)
 {
     GUI.Label(EditorGUI.IndentedRect(position), property.displayName, EditorStyles.label);
     position.y += 16f;
     StructPropertyGUI.DoChildren(position, property);
 }
Esempio n. 5
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);
        }