Пример #1
0
        public override void OnInspectorGUI()
        {
            serializedObject.Update();

            EditorGUI.BeginChangeCheck();

            base.OnInspectorGUI();

            ShapeEditors.ArcShapeEditor(angleA, angleB, radius, segments);
            ShapeEditors.RendererEditor(colorMode, blendMode, color, colorsList, gradient, rendererType, billboardMethod, quadLineAlignment, quadLineThickness);

            if (EditorGUI.EndChangeCheck())
            {
                arcShape.MarkDirty();
            }

            serializedObject.ApplyModifiedProperties();
        }
Пример #2
0
        public override void OnInspectorGUI()
        {
            serializedObject.Update();

            EditorGUI.BeginChangeCheck();

            base.OnInspectorGUI();

            ShapeEditors.PolygonShapeEditor(closeShape, pointsList, polygonShape);

            ShapeEditors.RendererEditor(colorMode, blendMode, color, colorsList, gradient, rendererType, billboardMethod, quadLineAlignment, quadLineThickness);

            ShapeEditors.CapEditor(capA, capDetailA, capB, capDetailB, (RendererType)rendererType.enumValueIndex == RendererType.PixelLine);

            if (EditorGUI.EndChangeCheck())
            {
                polygonShape.MarkDirty();
            }

            serializedObject.ApplyModifiedProperties();
        }
Пример #3
0
 public override void DuringSceneGUI(SceneView sceneView)
 {
     ShapeEditors.DrawHandles(scriptableObject, polygonShape, Tools.current);
 }
Пример #4
0
 public override void OnInspectorGUI()
 {
     ShapeEditors.TransformEditor(position, eulerRotation, scale);
 }