Beispiel #1
0
        private void OnSceneGUI()
        {
            SplineObject obj = (SplineObject)target;

            Handles.color = new Color(1, 0.5f, 0, 1);
            SplineEditor.DrawSplineSys(obj.splines, obj.transform.localToWorldMatrix,
                                       drawLines: obj.drawLines, drawBeizer: obj.drawBeizer, drawNodes: obj.drawNodes);

            SplineEditor.EditSplineSys(obj.splines, obj.transform.localToWorldMatrix, obj);
        }
Beispiel #2
0
        static void DrawInactiveGizmo(SplineObject obj, GizmoType gizmoType)
        {
            //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.splines, obj.transform.localToWorldMatrix,
                                           drawLines: obj.drawLines, drawBeizer: obj.drawBeizer, drawNodes: obj.drawNodes);
            }
        }