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(); }
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(); }
public override void DuringSceneGUI(SceneView sceneView) { ShapeEditors.DrawHandles(scriptableObject, polygonShape, Tools.current); }
public override void OnInspectorGUI() { ShapeEditors.TransformEditor(position, eulerRotation, scale); }