Skip to content

TextStudioSourceColorSelector

ClassTextStudioTextStudio
public sealed class TextStudioSourceColorSelector

Optional source-color range selector that filters a composed layer by hue, saturation, luminance, or alpha.

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
public void Disable()

Disables source-color filtering while retaining its authored values.

public TextStudioSourceColorSelector()

public bool Enabled { get; }

Returns

System.Boolean

public TextStudioSourceColorMetric Metric { get; }

Returns

TextStudio.TextStudioSourceColorMetric

public Color TargetColor { get; }

Returns

UnityEngine.Color

public float Target { get; }

Returns

System.Single

public float Tolerance { get; }

Returns

System.Single

public float Softness { get; }

Returns

System.Single

public bool Invert { get; }

Returns

System.Boolean