TextStudio2DLightingProfile
public sealed class TextStudio2DLightingProfile : ScriptableObjectA shared directional light override for explicitly bound TextMesh Pro appearance.
Methods
Section titled “Methods”
SetLight(float, float, float, bool)
Section titled “SetLight(float, float, float, bool)”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 |
Constructors
Section titled “Constructors”
TextStudio2DLightingProfile()
Section titled “TextStudio2DLightingProfile()”public TextStudio2DLightingProfile()Properties
Section titled “Properties”
OverrideLighting
Section titled “OverrideLighting”public bool OverrideLighting { get; }Whether to override the bound styles' own light.
Returns
System.Boolean
Azimuth
Section titled “Azimuth”public float Azimuth { get; }Horizontal light angle in the glyph plane, in degrees.
Returns
System.Single
Elevation
Section titled “Elevation”public float Elevation { get; }Light elevation in degrees above the glyph plane.
Returns
System.Single
Intensity
Section titled “Intensity”public float Intensity { get; }Strength of the directional contribution.
Returns
System.Single