TextStudioSourceColorSelector
public sealed class TextStudioSourceColorSelectorOptional source-color range selector that filters a composed layer by hue, saturation, luminance, or alpha.
Methods
Section titled “Methods”
Configure(TextStudioSourceColorMetric, Color, float, float, float, bool)
Section titled “Configure(TextStudioSourceColorMetric, Color, float, float, float, bool)”public void Configure(TextStudioSourceColorMetric metric, Color targetColor, float target, float tolerance, float softness, bool invert = false)Configures color metric, target, range, feathering, and inversion.
Parameters
| Name | Type |
|---|---|
metric |
TextStudio.TextStudioSourceColorMetric |
targetColor |
UnityEngine.Color |
target |
System.Single |
tolerance |
System.Single |
softness |
System.Single |
invert |
System.Boolean |
Disable()
Section titled “Disable()”public void Disable()Disables source-color filtering while retaining its authored values.
Constructors
Section titled “Constructors”
TextStudioSourceColorSelector()
Section titled “TextStudioSourceColorSelector()”public TextStudioSourceColorSelector()Properties
Section titled “Properties”
Enabled
Section titled “Enabled”public bool Enabled { get; }Returns
System.Boolean
Metric
Section titled “Metric”public TextStudioSourceColorMetric Metric { get; }Returns
TextStudio.TextStudioSourceColorMetric
TargetColor
Section titled “TargetColor”public Color TargetColor { get; }Returns
UnityEngine.Color
Target
Section titled “Target”public float Target { get; }Returns
System.Single
Tolerance
Section titled “Tolerance”public float Tolerance { get; }Returns
System.Single
Softness
Section titled “Softness”public float Softness { get; }Returns
System.Single
Invert
Section titled “Invert”public bool Invert { get; }Returns
System.Boolean