Struct TextRenderer.TextRenderRequest ​
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Text rendering parameters.
csharp
public struct TextRenderer.TextRenderRequestConstructors ​
TextRenderRequest() ​
Text rendering parameters.
csharp
public TextRenderRequest()Properties ​
CenterHorizontal ​
Gets whether the text is centered horizontally around .
csharp
public bool CenterHorizontal { readonly get; init; }Property Value ​
CenterVertical ​
Gets whether the text is centered vertically around .
csharp
public bool CenterVertical { readonly get; init; }Property Value ​
Color ​
Gets the text color.
csharp
public Color32 Color { readonly get; init; }Property Value ​
Scale ​
Gets or sets the text scale in pixels-per-em.
csharp
public float Scale { readonly get; set; }Property Value ​
Text ​
Gets the string to render.
csharp
public required string Text { readonly get; init; }Property Value ​
TextOffset ​
Gets an additional pixel offset applied after positioning.
csharp
public Vector2 TextOffset { readonly get; init; }Property Value ​
X ​
Gets or sets the screen-space X position in pixels.
csharp
public float X { readonly get; set; }Property Value ​
Y ​
Gets or sets the screen-space Y position in pixels.
csharp
public float Y { readonly get; set; }
