Handles.DrawSolidArcstatic function DrawSolidArc (center : Vector3, normal : Vector3, from : Vector3, angle : float, radius : float) : voidParameters
DescriptionDraw a circular sector (pie piece) in 3D space.
// Create a 180 degrees wire arc with a ScaleValueHandle attached to the disc // that lets you modify the "shieldArea" var in the WireArcExample.js @CustomEditor (SolidArcExample) class DrawSolidArc extends Editor { function OnSceneGUI () { Handles.color = Color(1,1,1,0.2); Handles.DrawSolidArc(target.transform.position, target.transform.up, -target.transform.right, 180, target.shieldArea); Handles.color = Color.white; target.shieldArea = Handles.ScaleValueHandle(target.shieldArea, target.transform.position + target.transform.forward*target.shieldArea, target.transform.rotation, 1, Handles.ConeCap, 1); } } And the script attached to this Handle: // SolidArcExample.js var shieldArea : float = 5;
|

