 |
SceneViewAddCameraNavigationCircles Method |
Adds a CameraNavigationCircles overlay panel that is a camera controller that shows a 3D axes with axis circles and can be used to rotate the camera.
To remove CameraNavigationCircles from SceneView call
RemoveCameraNavigationCircles(CameraNavigationCircles) or Dispose method on the CameraNavigationCircles.
Namespace: Ab4d.SharpEngineAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntaxpublic CameraNavigationCircles AddCameraNavigationCircles(
ManualInputEventsManager? inputEventsManager = null,
PositionTypes alignment = PositionTypes.BottomLeft,
int size = 150,
Vector2? position = null,
bool isUsingSprites = false
)
Parameters
- inputEventsManager ManualInputEventsManager (Optional)
- ManualInputEventsManager that is used to subscribe to mouse events. When null, then CameraNavigationCircles will only show the orientation of the camera and will not respond to user input.
- alignment PositionTypes (Optional)
- Alignment of the panel relative to the parent SceneView. Default value is BottomLeft.
- size Int32 (Optional)
- optional size (width and height) of the panel (150 by default).
- position NullableVector2 (Optional)
- optional position offset of the panel (null by default).
- isUsingSprites Boolean (Optional)
- when true (false by default), then SpriteBatch is used to render this overlay panel. This requires waiting for the rendering to finish before the sprite can be drawn. When false, this overlay panel is rendered with the parentSceneView rendering process. This is much more efficient.
Return Value
CameraNavigationCirclescreated CameraNavigationCircles
See Also