PhysicsEngineRenderLabel Method (String, Color, Vector3, Vector2, Boolean) |
Creates a label and adds it to the render list.
Namespace:
Demo3D.Visuals
Assembly:
Demo3D.Core (in Demo3D.Core.dll) Version: 15.0.2.11458
Syntaxpublic void RenderLabel(
string text,
Color color,
Vector3 position,
Vector2 offset,
bool persistent = false
)
Parameters
- text
- Type: SystemString
The text for the label. - color
- Type: System.DrawingColor
The text color for the label. - position
- Type: Microsoft.DirectXVector3
The world-space position for the label. - offset
- Type: Microsoft.DirectXVector2
The screen-space 2D offset for the label. - persistent (Optional)
- Type: SystemBoolean
Whether the label is cleared only before a timestep.
See Also