Click or drag to resize
Ab4d.SharpEngine logo

OverlayPanelBase Constructor

Initializes a new overlay panel.

Namespace: Ab4d.SharpEngine.OverlayPanels
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 5.0.1075+bc537c8d217949260b11f66ee86aefa6456ac517
Syntax
C#
protected OverlayPanelBase(
	SceneView parentSceneView,
	int width = 100,
	int height = 100,
	PositionTypes alignment = PositionTypes.TopLeft,
	float positionX = 0f,
	float positionY = 0f,
	bool adjustSizeByDpiScale = true,
	bool isUsingSprites = false,
	string? name = null
)

Parameters

parentSceneView  SceneView
The SceneView that displays this overlay panel.
width  Int32  (Optional)
optional width of the panel (100 by default).
height  Int32  (Optional)
optional height of the panel (100 by default).
alignment  PositionTypes  (Optional)
Alignment of the panel relative to the parent SceneView. Default value is TopLeft.
positionX  Single  (Optional)
optional X position of the panel (0 by default).
positionY  Single  (Optional)
optional X position of the panel (0 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. This may be useful when the overlay panel is changed rarely. When false, this overlay panel is rendered with the parentSceneView rendering process. This is much more efficient when the overlay panel is changed often because it eliminates the waiting for the overlay panel to be rendered.
name  String  (Optional)
optional name
See Also