Description
The Rotation
property of the Editor.GraphicsView
class represents the rotation angle of the graphics view in degrees. This property allows you to get or set the current rotation of the view, enabling you to rotate the entire view around its center point.
Usage
To use the Rotation
property, simply access it through an instance of the GraphicsView
class. You can read the current rotation angle or assign a new value to rotate the view.
Example usage:
GraphicsView graphicsView = new GraphicsView();
// Get the current rotation angle
float currentRotation = graphicsView.Rotation;
// Set a new rotation angle
graphicsView.Rotation = 45.0f; // Rotates the view by 45 degrees
Example
GraphicsView graphicsView = new GraphicsView();
// Get the current rotation angle
float currentRotation = graphicsView.Rotation;
// Set a new rotation angle
graphicsView.Rotation = 45.0f; // Rotates the view by 45 degrees