Skip to main content

CPointWorldText

Wraps the point_worldtext entity - a world-space text panel rendered in 3D.

public sealed class CPointWorldText : CBaseEntity

Namespace: DeadworksManaged.Api
Inherits / implements: CBaseEntity
Source: Entities/CPointWorldText.cs#L9

Properties​

CPointWorldText.Enabled​

Signature

public bool Enabled { get; set; }

Source: Entities/CPointWorldText.cs#L22

CPointWorldText.Fullbright​

Signature

public bool Fullbright { get; set; }

Source: Entities/CPointWorldText.cs#L23

CPointWorldText.FontSize​

Signature

public float FontSize { get; set; }

Source: Entities/CPointWorldText.cs#L24

CPointWorldText.WorldUnitsPerPx​

Signature

public float WorldUnitsPerPx { get; set; }

Source: Entities/CPointWorldText.cs#L25

CPointWorldText.DepthOffset​

Signature

public float DepthOffset { get; set; }

Source: Entities/CPointWorldText.cs#L26

CPointWorldText.JustifyHorizontal​

Signature

public HorizontalJustify JustifyHorizontal { get; set; }

Source: Entities/CPointWorldText.cs#L27

CPointWorldText.JustifyVertical​

Signature

public VerticalJustify JustifyVertical { get; set; }

Source: Entities/CPointWorldText.cs#L28

CPointWorldText.FontName​

Signature

public string FontName { get; set; }

Source: Entities/CPointWorldText.cs#L29

CPointWorldText.ColorABGR​

Gets or sets the color as an ABGR uint32.

Signature

public uint ColorABGR { get; set; }

Source: Entities/CPointWorldText.cs#L43

Fields​

CPointWorldText.FontNameAccessor​

Signature

public static readonly SchemaAccessor<byte> FontNameAccessor;

Source: Entities/CPointWorldText.cs#L20

Methods​

CPointWorldText.SetMessage()​

Sets the message text via entity input.

Signature

public void SetMessage(string text)

Source: Entities/CPointWorldText.cs#L46

CPointWorldText.SetColor()​

Signature

public void SetColor(Color color)
public void SetColor(byte r, byte g, byte b, byte a = 255)

Source: Entities/CPointWorldText.cs#L48, Entities/CPointWorldText.cs#L49

CPointWorldText.Create()​

Creates and spawns a CPointWorldText at the given position.

Signature

public static CPointWorldText? Create(string message, Vector3 position, float fontSize = 100f, float? worldUnitsPerPx = null, string? fontName = null, byte r = 255, byte g = 255, byte b = 255, byte a = 255, int reorientMode = 0)

Source: Entities/CPointWorldText.cs#L55