Table of Contents

Class GizmoBillboardLetterScript

Namespace
Stride.CommunityToolkit.Scripts
Assembly
Stride.CommunityToolkit.dll

Keeps a gizmo letter entity oriented toward the camera with an optional additional Y-axis rotation.

public class GizmoBillboardLetterScript : SyncScript, IIdentifiable, ICollectorHolder
Inheritance
GizmoBillboardLetterScript
Implements
Inherited Members
Extension Methods

Properties

DefaultRotation

Additional yaw rotation in degrees applied after facing the camera.

public int DefaultRotation { get; set; }

Property Value

int

Methods

GetGCCamera()

Attempts to find the primary camera named "Main" in the graphics compositor.

public CameraComponent? GetGCCamera()

Returns

CameraComponent

Update()

Per-frame update to lazily acquire camera and orient the letter.

public override void Update()

UpdateLetterRotation(Vector3)

Rotates the entity so it faces the camera (billboarding) plus DefaultRotation.

public void UpdateLetterRotation(Vector3 cameraPosition)

Parameters

cameraPosition Vector3