Description
The Camera
property of the EditorTool
class provides access to the SceneCamera
associated with the editor tool. This camera is used to render the scene view within the editor, allowing for manipulation and visualization of objects within the scene.
Usage
To access the Camera
property, you need to have an instance of the EditorTool
class. This property is read-only and provides a reference to the SceneCamera
object.
Example usage:
EditorTool myTool = new EditorTool();
SceneCamera sceneCamera = myTool.Camera;
// Use sceneCamera to manipulate the view or settings
Example
EditorTool myTool = new EditorTool();
SceneCamera sceneCamera = myTool.Camera;
// Use sceneCamera to manipulate the view or settings