コード例 #1
0
 void DrawAngleProperties(DiscType selectedType)
 {
     using (new EditorGUI.DisabledScope(selectedType.HasSector() == false && serializedObject.isEditingMultipleObjects == false)) {
         ShapesUI.AngleProperty(propAngRadiansStart, "Angle start", propAngUnitInput, angLabelLayout);
         ShapesUI.AngleProperty(propAngRadiansEnd, "Angle end", propAngUnitInput, angLabelLayout);
         ShapesUI.DrawAngleSwitchButtons(propAngUnitInput);
     }
 }
コード例 #2
0
 void DrawAngleProperties(DiscType selectedType)
 {
     using (new EditorGUI.DisabledScope(selectedType.HasSector() == false && serializedObject.isEditingMultipleObjects == false)) {
         ShapesUI.AngleProperty(propAngRadiansStart, "Angle start", propAngUnitInput, angLabelLayout);
         ShapesUI.AngleProperty(propAngRadiansEnd, "Angle end", propAngUnitInput, angLabelLayout);
         GUILayout.BeginHorizontal();
         EditorGUILayout.PrefixLabel(" ");
         GUIContent[] angLabels = (Screen.width < 300) ? ShapesAssets.AngleUnitButtonContentsShort : ShapesAssets.AngleUnitButtonContents;
         ShapesUI.DrawTypeSwitchButtons(propAngUnitInput, angLabels, 15);
         GUILayout.EndHorizontal();
     }
 }