示例#1
0
 /// <summary>Adds a line to the environment for the current frame.</summary>
 /// <param name="start">Starting point of the line.</param>
 /// <param name="end">End point of the line.</param>
 /// <param name="color">Color for the line, this is embedded in the vertex color of the line.</param>
 /// <param name="thickness">Thickness of the line in meters.</param>
 public static void Add(Vec3 start, Vec3 end, Color32 color, float thickness)
 => NativeAPI.line_add(start, end, color, thickness);
示例#2
0
 /// <summary>Adds a line based on a ray to the environment for the current frame.</summary>
 /// <param name="ray">The ray we want to visualize!</param>
 /// <param name="length">How long should the ray be? Actual length will be ray.direction.Magnitude * length.</param>
 /// <param name="color">Color for the line, this is embedded in the vertex color of the line.</param>
 /// <param name="thickness">Thickness of the line in meters.</param>
 public static void Add(Ray ray, float length, Color32 color, float thickness)
 => NativeAPI.line_add(ray.position, ray.position + ray.direction * length, color, color, thickness);