DrawPointSceneGUI() public static method

public static DrawPointSceneGUI ( BezierPoint3D point ) : void
point BezierPoint3D
return void
Esempio n. 1
0
        protected virtual void OnSceneGUI()
        {
            BezierPoint3DEditor.handleCapSize = BezierPoint3DEditor.CircleCapSize;
            BezierCurve3DEditor.DrawPointsSceneGUI(this.point.Curve, this.point);

            BezierPoint3DEditor.handleCapSize = BezierPoint3DEditor.SphereCapSize;
            BezierPoint3DEditor.DrawPointSceneGUI(this.point, Handles.DotCap, Handles.SphereCap);
        }
Esempio n. 2
0
        public static void DrawPointsSceneGUI(BezierCurve3D curve, BezierPoint3D exclude = null)
        {
            for (int i = 0; i < curve.KeyPointsCount; i++)
            {
                if (curve.KeyPoints[i] == exclude)
                {
                    continue;
                }

                BezierPoint3DEditor.handleCapSize = BezierPoint3DEditor.CircleCapSize;
                BezierPoint3DEditor.DrawPointSceneGUI(curve.KeyPoints[i]);
            }
        }