Loading...
Searching...
No Matches
realvirtual.rvUIPanelPlacer Class Reference
Inheritance diagram for realvirtual.rvUIPanelPlacer:
Public Types | |
| enum | Position { TopLeft , TopCenter , TopRight , MiddleLeft , MiddleCenter , MiddleRight , BottomLeft , BottomCenter , BottomRight } |
Public Member Functions | |
| void | Place (Position position) |
| Places the panel at the specified screen position with margin offset. | |
| void | ApplyPosition () |
| Applies the current panel position. | |
Public Attributes | |
| Position | panelPosition |
| Position where the panel should be placed. | |
| float | margin |
| Margin in pixels from the screen edges. | |
Member Enumeration Documentation
◆ Position
Member Function Documentation
◆ ApplyPosition()
| void realvirtual.rvUIPanelPlacer.ApplyPosition | ( | ) |
Applies the current panel position.
Call this after changing panelPosition or margin at runtime.
◆ Place()
| void realvirtual.rvUIPanelPlacer.Place | ( | Position | position | ) |
Places the panel at the specified screen position with margin offset.
Sets anchors, pivot, and position to align the panel correctly.
- Parameters
-
position The screen position to place the panel at
Member Data Documentation
◆ margin
| float realvirtual.rvUIPanelPlacer.margin |
Margin in pixels from the screen edges.
◆ panelPosition
| Position realvirtual.rvUIPanelPlacer.panelPosition |
Position where the panel should be placed.