Description
The Name
property of the SceneCamera
class is a string
that represents the name of the camera. This property is primarily used for debugging purposes, allowing developers to easily identify and differentiate between multiple cameras within a scene.
Usage
To access or modify the Name
property of a SceneCamera
instance, simply use the property accessor syntax. This property is read-write, so you can both retrieve the current name and assign a new name to the camera.
Example
// Example of setting and getting the Name property of a SceneCamera
// Create a new SceneCamera instance
SceneCamera camera = new SceneCamera();
// Set the name of the camera
camera.Name = "MainCamera";
// Retrieve the name of the camera
string cameraName = camera.Name;
// Output the camera name
// Note: Avoid using Console.WriteLine in s&box
// Instead, use the appropriate logging or UI display method
// Log(cameraName);