Exemplo n.º 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);
        }
Exemplo 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);
        }
Exemplo n.º 3
0
 internal static void JointSpring(Rect position, SerializedProperty property)
 {
     StructPropertyGUI.GenericStruct(position, property);
 }
Exemplo 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);
 }
Exemplo 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);
        }