コード例 #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.DotHandleCap, Handles.SphereHandleCap);
        }
コード例 #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]);
            }
        }