コード例 #1
0
        private void OnSceneGUI()
        {
            SplineObject splineObj = (SplineObject)target;

            Handles.color = new Color(1, 0.5f, 0, 1);
            SplineEditor.DrawSplineSys(splineObj.splineSys, splineObj.transform.localToWorldMatrix);

            SplineEditor.EditSplineSys(splineObj.splineSys, splineObj.transform.localToWorldMatrix, splineObj);
        }
コード例 #2
0
        static void DrawInactiveGizmo(SplineObject obj, GizmoType gizmoType)
        {
            //if (gizmoType.HasFlag(GizmoType.Selected)) Handles.color = new Color(1, 0.5f, 0, 1);
            //else if (gizmoType.HasFlag(GizmoType.NonSelected)) Handles.color = new Color(0.75f, 0.25f, 0, 1);
            //SplineEditor.DrawSplineSys(obj.splineSys, obj.transform.localToWorldMatrix);
            //drawing selected in OnSceneGUI - otherwise will be erased by matrix gizmo drawn in tester's OnSceneGUI

            if (gizmoType.HasFlag(GizmoType.NonSelected))
            {
                Handles.color = new Color(0.75f, 0.25f, 0, 1);
                SplineEditor.DrawSplineSys(obj.splineSys, obj.transform.localToWorldMatrix);
            }
        }
コード例 #3
0
        static void DrawInactiveGizmo(SplineObject obj, GizmoType gizmoType)
        {
            if (gizmoType.HasFlag(GizmoType.Selected))
            {
                Handles.color = new Color(1, 0.5f, 0, 1);
            }
            else if (gizmoType.HasFlag(GizmoType.NonSelected))
            {
                Handles.color = new Color(0.75f, 0.25f, 0, 1);
            }

            SplineEditor.DrawSplineSys(obj.splineSys, obj.transform.localToWorldMatrix);
        }
コード例 #4
0
 private void DrawGUI()
 {
     SplineObject splineObj = (SplineObject)target;
     //SplineInspector.DrawSpline(splineObj.splineSys);
 }
コード例 #5
0
        private void OnSceneGUI()
        {
            SplineObject splineObj = (SplineObject)target;

            SplineEditor.EditSplineSys(splineObj.splineSys, splineObj.transform.localToWorldMatrix);
        }