UnityEngine.Gizmos.DrawWireCube C# (CSharp) Method

DrawWireCube() public static method

public static DrawWireCube ( Vector3 center, Vector3 size ) : void
center Vector3
size Vector3
return void
		public static void DrawWireCube(Vector3 center, Vector3 size) { }
		public static void DrawWireSphere(Vector3 center, float radius) { }

Usage Example

コード例 #1
0
 private void DrawPlatforms()
 {
     if (!showAnims)
     {
         return;
     }
     G.color = C.white;
     G.DrawWireCube(V3.right * 2 + V3.up * M.Sin(radians * M.PI) + V3.up * -.25f, new V3(1, .5f, 0));
     G.DrawWireCube(V3.right * 3 + V3.up * M.Sin(radians * M.PI / 2) + V3.up * -.25f, new V3(1, .5f, 0));
     G.DrawWireCube(V3.right * 4 + V3.up * M.Sin(radians * M.PI / 2) * .5f + V3.up * -.25f, new V3(1, .5f, 0));
 }
All Usage Examples Of UnityEngine.Gizmos::DrawWireCube