TextStudio2DAnimatedEffectSpec
public struct TextStudio2DAnimatedEffectSpecCompact deterministic parameters shared by the animated Appearance family. Playback uses the owning Text Studio presentation clock, so scrubbing, pause, reverse, and reduced motion remain coherent.
Constructors
Section titled “Constructors”
TextStudio2DAnimatedEffectSpec(TextStudio2DAnimatedEffectKind, TextStudio2DMappingSpace, float, float, float, float, float, float, float, float, Vector2, Color, Color, int, int, TextStudioReducedMotionBehavior)
Section titled “TextStudio2DAnimatedEffectSpec(TextStudio2DAnimatedEffectKind, TextStudio2DMappingSpace, float, float, float, float, float, float, float, float, Vector2, Color, Color, int, int, TextStudioReducedMotionBehavior)”public TextStudio2DAnimatedEffectSpec(TextStudio2DAnimatedEffectKind kind, TextStudio2DMappingSpace mapping, float amount, float speed, float phase, float scale, float width, float softness, float amplitude, float frequency, Vector2 direction, Color primaryColor, Color secondaryColor, int seed, int historyFrames, TextStudioReducedMotionBehavior reducedMotionBehavior)Creates an animated-effect specification with the supplied mapping, timing, shape, colors, seed, history, and reduced-motion behavior.
Parameters
| Name | Type |
|---|---|
kind |
TextStudio.TextStudio2DAnimatedEffectKind |
mapping |
TextStudio.TextStudio2DMappingSpace |
amount |
System.Single |
speed |
System.Single |
phase |
System.Single |
scale |
System.Single |
width |
System.Single |
softness |
System.Single |
amplitude |
System.Single |
frequency |
System.Single |
direction |
UnityEngine.Vector2 |
primaryColor |
UnityEngine.Color |
secondaryColor |
UnityEngine.Color |
seed |
System.Int32 |
historyFrames |
System.Int32 |
reducedMotionBehavior |
TextStudio.TextStudioReducedMotionBehavior |
Methods
Section titled “Methods”
Preset(TextStudio2DAnimatedEffectKind)
Section titled “Preset(TextStudio2DAnimatedEffectKind)”public static TextStudio2DAnimatedEffectSpec Preset(TextStudio2DAnimatedEffectKind kind)Returns a polished deterministic starting point for an animated family.
Parameters
| Name | Type |
|---|---|
kind |
TextStudio.TextStudio2DAnimatedEffectKind |
Returns
TextStudio.TextStudio2DAnimatedEffectSpec
WithTiming(float, float, float)
Section titled “WithTiming(float, float, float)”public TextStudio2DAnimatedEffectSpec WithTiming(float amount, float speed, float phase)Returns an animated-effect copy with the supplied amount, speed, and phase.
Parameters
| Name | Type |
|---|---|
amount |
System.Single |
speed |
System.Single |
phase |
System.Single |
Returns
TextStudio.TextStudio2DAnimatedEffectSpec
WithShape(float, float, float, float, float, Vector2)
Section titled “WithShape(float, float, float, float, float, Vector2)”public TextStudio2DAnimatedEffectSpec WithShape(float scale, float width, float softness, float amplitude, float frequency, Vector2 direction)Returns an animated-effect copy with the supplied scale, width, softness, amplitude, frequency, and direction.
Parameters
| Name | Type |
|---|---|
scale |
System.Single |
width |
System.Single |
softness |
System.Single |
amplitude |
System.Single |
frequency |
System.Single |
direction |
UnityEngine.Vector2 |
Returns
TextStudio.TextStudio2DAnimatedEffectSpec
WithColors(Color, Color)
Section titled “WithColors(Color, Color)”public TextStudio2DAnimatedEffectSpec WithColors(Color primary, Color secondary)Returns an animated-effect copy with the supplied primary and secondary colors.
Parameters
| Name | Type |
|---|---|
primary |
UnityEngine.Color |
secondary |
UnityEngine.Color |
Returns
TextStudio.TextStudio2DAnimatedEffectSpec
WithMapping(TextStudio2DMappingSpace)
Section titled “WithMapping(TextStudio2DMappingSpace)”public TextStudio2DAnimatedEffectSpec WithMapping(TextStudio2DMappingSpace mapping)Returns an animated-effect copy using the supplied mapping space.
Parameters
| Name | Type |
|---|---|
mapping |
TextStudio.TextStudio2DMappingSpace |
Returns
TextStudio.TextStudio2DAnimatedEffectSpec
WithSeed(int)
Section titled “WithSeed(int)”public TextStudio2DAnimatedEffectSpec WithSeed(int seed)Returns an animated-effect copy using the supplied deterministic seed.
Parameters
| Name | Type |
|---|---|
seed |
System.Int32 |
Returns
TextStudio.TextStudio2DAnimatedEffectSpec
WithHistoryFrames(int)
Section titled “WithHistoryFrames(int)”public TextStudio2DAnimatedEffectSpec WithHistoryFrames(int historyFrames)Returns an animated-effect copy with the supplied temporal-history frame count.
Parameters
| Name | Type |
|---|---|
historyFrames |
System.Int32 |
Returns
TextStudio.TextStudio2DAnimatedEffectSpec
WithReducedMotion(TextStudioReducedMotionBehavior)
Section titled “WithReducedMotion(TextStudioReducedMotionBehavior)”public TextStudio2DAnimatedEffectSpec WithReducedMotion(TextStudioReducedMotionBehavior behavior)Returns an animated-effect copy with the supplied reduced-motion behavior.
Parameters
| Name | Type |
|---|---|
behavior |
TextStudio.TextStudioReducedMotionBehavior |
Returns
TextStudio.TextStudio2DAnimatedEffectSpec
Properties
Section titled “Properties”
public TextStudio2DAnimatedEffectKind Kind { get; }Returns
TextStudio.TextStudio2DAnimatedEffectKind
Mapping
Section titled “Mapping”public TextStudio2DMappingSpace Mapping { get; }Returns
TextStudio.TextStudio2DMappingSpace
Amount
Section titled “Amount”public float Amount { get; }Returns
System.Single
public float Speed { get; }Returns
System.Single
public float Phase { get; }Returns
System.Single
public float Scale { get; }Returns
System.Single
public float Width { get; }Returns
System.Single
Softness
Section titled “Softness”public float Softness { get; }Returns
System.Single
Amplitude
Section titled “Amplitude”public float Amplitude { get; }Returns
System.Single
Frequency
Section titled “Frequency”public float Frequency { get; }Returns
System.Single
Direction
Section titled “Direction”public Vector2 Direction { get; }Returns
UnityEngine.Vector2
PrimaryColor
Section titled “PrimaryColor”public Color PrimaryColor { get; }Returns
UnityEngine.Color
SecondaryColor
Section titled “SecondaryColor”public Color SecondaryColor { get; }Returns
UnityEngine.Color
public int Seed { get; }Returns
System.Int32
HistoryFrames
Section titled “HistoryFrames”public int HistoryFrames { get; }Returns
System.Int32
ReducedMotionBehavior
Section titled “ReducedMotionBehavior”public TextStudioReducedMotionBehavior ReducedMotionBehavior { get; }Returns
TextStudio.TextStudioReducedMotionBehavior