Description
The Camera
property of the Editor.NativeRenderingWidget
class specifies the SceneCamera
instance that is used for rendering. This property allows you to get or set the camera from which the rendering will be performed within the editor's native rendering widget.
Usage
To use the Camera
property, you need to have an instance of the NativeRenderingWidget
class. You can then access the Camera
property to either retrieve the current camera or assign a new SceneCamera
to it.
Example usage:
var renderingWidget = new NativeRenderingWidget();
SceneCamera currentCamera = renderingWidget.Camera; // Get the current camera
// Set a new camera
SceneCamera newCamera = new SceneCamera();
renderingWidget.Camera = newCamera;
Example
var renderingWidget = new NativeRenderingWidget();
SceneCamera currentCamera = renderingWidget.Camera; // Get the current camera
// Set a new camera
SceneCamera newCamera = new SceneCamera();
renderingWidget.Camera = newCamera;