UnityEngine.Gizmos.DrawRay C# (CSharp) Method

DrawRay() public static method

public static DrawRay ( Ray r ) : void
r Ray
return void
		public static void DrawRay(Ray r) { }
		public static void DrawRay(Vector3 from, Vector3 direction) { }

Same methods

Gizmos::DrawRay ( Vector3 from, Vector3 direction ) : void

Usage Example

コード例 #1
0
 private void DrawBaseCircle()
 {
     //Draw Radius
     DebugDrawers.DrawCircle(V3.zero, 1, Axis.Z, C.white, 0, 64);
     //Construct a triangle
     G.color = C.blue;
     G.DrawLine(V3.zero, new V3(cosine, sine));
     G.color = C.red;
     G.DrawLine(V3.zero, V3.right * cosine);
     G.color = C.green;
     G.DrawRay(V3.zero + V3.right * cosine, V3.up * sine);
 }
All Usage Examples Of UnityEngine.Gizmos::DrawRay