Click or drag to resize
Ab4d.SharpEngine logo

SceneViewAddCameraAxisPanel Method

Adds a CameraAxisPanel overlay panel that shows an orientation of the X, Y and Z axes. To remove CameraAxisPanel from SceneView call RemoveCameraAxisPanel(CameraAxisPanel) or Dispose method on the CameraAxisPanel.

Namespace: Ab4d.SharpEngine
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntax
C#
public CameraAxisPanel AddCameraAxisPanel(
	ICamera? customCamera = null,
	PositionTypes alignment = PositionTypes.BottomLeft,
	int size = 100,
	Vector2? position = null,
	bool adjustSizeByDpiScale = true,
	bool isUsingSprites = false
)

Parameters

customCamera  ICamera  (Optional)
optional camera; when null (by default) than the current camera from SceneView is used
alignment  PositionTypes  (Optional)
Alignment of the panel relative to the parent SceneView. Default value is BottomLeft.
size  Int32  (Optional)
optional size of the panel (100 by default). This value can be multiplied by dpi scale of the parent SceneView (when adjustSizeByDpiScale is true - by default)
position  NullableVector2  (Optional)
optional position offset of the panel (null by default).
adjustSizeByDpiScale  Boolean  (Optional)
when true (by default) then the width and height are multiplied by dpi scale of the parent SceneView
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

CameraAxisPanel
created CameraAxisPanel
See Also