Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Handles.DrawSolidArc

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual
public static function DrawSolidArc(center: Vector3, normal: Vector3, from: Vector3, angle: float, radius: float): void;
public static void DrawSolidArc(Vector3 center, Vector3 normal, Vector3 from, float angle, float radius);

Parameters

center The center of the circle.
normal The normal of the circle.
from The direction of the point on the circumference, relative to the center, where the sector begins.
angle The angle of the sector, in degrees.
radius The radius of the circle

Note: Use HandleUtility.GetHandleSize where you might want to have constant screen-sized handles.

Description

Draw a circular sector (pie piece) in 3D space.


Solid Arc in the Scene View.

	// Create a 180 degrees wire arc with a ScaleValueHandle attached to the disc
	// that lets you modify the "shieldArea" var in the WireArcExample.js
	
	    }
	}

And the script attached to the Game Object which should show the custom handles:

	// SolidArcExample.js
	
	var shieldArea : float = 5;