TextStudio2DNormalDetailSpec
public struct TextStudio2DNormalDetailSpecOptional glyph-local surface detail. A missing texture or zero strength preserves the original response.
Constructors
Section titled “Constructors”
TextStudio2DNormalDetailSpec(Texture2D, float, TextStudio2DNormalMapEncoding, Vector2?, Vector2, float)
Section titled “TextStudio2DNormalDetailSpec(Texture2D, float, TextStudio2DNormalMapEncoding, Vector2?, Vector2, float)”public TextStudio2DNormalDetailSpec(Texture2D texture, float strength = 1, TextStudio2DNormalMapEncoding encoding = TextStudio2DNormalMapEncoding.LinearRgb, Vector2? scale = null, Vector2 offset = null, float angle = 0)Creates detail with explicit source encoding and glyph-local mapping.
Parameters
| Name | Type |
|---|---|
texture |
UnityEngine.Texture2D |
strength |
System.Single |
encoding |
TextStudio.TextStudio2DNormalMapEncoding |
scale |
System.Nullable{UnityEngine.Vector2} |
offset |
UnityEngine.Vector2 |
angle |
System.Single |
Properties
Section titled “Properties”
Texture
Section titled “Texture”public Texture2D Texture { get; }Returns
UnityEngine.Texture2D
Encoding
Section titled “Encoding”public TextStudio2DNormalMapEncoding Encoding { get; }Returns
TextStudio.TextStudio2DNormalMapEncoding
Strength
Section titled “Strength”public float Strength { get; }Returns
System.Single
public Vector2 Scale { get; }Returns
UnityEngine.Vector2
Offset
Section titled “Offset”public Vector2 Offset { get; }Returns
UnityEngine.Vector2
public float Angle { get; }Returns
System.Single
IsEnabled
Section titled “IsEnabled”public bool IsEnabled { get; }Returns
System.Boolean