Panel Constructor (Vector2, PanelSkin, Anchor, NullableVector2) |
Create the panel.
Namespace:
GeonBit.UI.Entities
Assembly:
GeonBit.UI (in GeonBit.UI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public Panel(
Vector2 size,
PanelSkin skin = PanelSkin.Default,
Anchor anchor = Anchor.Center,
Nullable<Vector2> offset = null
)
Parameters
- size
- Type: Vector2
Panel size. - skin (Optional)
- Type: GeonBit.UI.EntitiesPanelSkin
Panel skin (texture to use). Use PanelSkin.None for invisible panels. - anchor (Optional)
- Type: GeonBit.UI.EntitiesAnchor
Position anchor. - offset (Optional)
- Type: SystemNullableVector2
Offset from anchor position.
See Also