Skip to content

TextStudio2DLightingProfile

ClassTextStudioTextStudio
public sealed class TextStudio2DLightingProfile : ScriptableObject

A shared directional light override for explicitly bound TextMesh Pro appearance.

public void SetLight(float azimuth, float elevation, float intensity, bool overrideLighting = true)

Publishes a single directional light change to all text bound to this profile.

Parameters

Name Type
azimuth System.Single
elevation System.Single
intensity System.Single
overrideLighting System.Boolean

public TextStudio2DLightingProfile()

public bool OverrideLighting { get; }

Whether to override the bound styles' own light.

Returns

System.Boolean

public float Azimuth { get; }

Horizontal light angle in the glyph plane, in degrees.

Returns

System.Single

public float Elevation { get; }

Light elevation in degrees above the glyph plane.

Returns

System.Single

public float Intensity { get; }

Strength of the directional contribution.

Returns

System.Single