Description
The CycleViewmode
method is a public instance method of the Editor.SceneViewportWidget
class. It allows users to cycle through different view modes within the scene viewport. This can be useful for quickly switching between various visual representations of the scene, such as wireframe, shaded, or textured views.
This method is associated with a keyboard shortcut, CTRL+SPACE
, which provides a quick and efficient way to change the view mode without navigating through menus.
Usage
To use the CycleViewmode
method, ensure that you have an instance of SceneViewportWidget
. You can then call the method directly on this instance to cycle through the available view modes.
For example, if you have a reference to a SceneViewportWidget
object named viewportWidget
, you can cycle the view mode by calling:
viewportWidget.CycleViewmode();
Alternatively, you can use the keyboard shortcut CTRL+SPACE
to achieve the same effect.
Example
// Assuming 'viewportWidget' is an instance of SceneViewportWidget
viewportWidget.CycleViewmode();
// Alternatively, use the keyboard shortcut CTRL+SPACE to cycle view modes.