The End
property represents the end position of a line in 3D space. It is a Vector3
type, which means it holds three-dimensional coordinates (x, y, z) that define the endpoint of the line.
The End
property represents the end position of a line in 3D space. It is a Vector3
type, which means it holds three-dimensional coordinates (x, y, z) that define the endpoint of the line.
To access or modify the end position of a Line
object, use the End
property. This property is public and can be read or set directly.
// Example of using the End property Line line = new Line(); // Set the end position of the line line.End = new Vector3(10.0f, 5.0f, 3.0f); // Get the end position of the line Vector3 endPosition = line.End; // Output the end position // Note: Avoid using Console.WriteLine in s&box // Instead, use appropriate logging or debugging tools // Debug.Log(endPosition);