Skip to content

TextStudio3DInteractionController

ClassTextStudio.ThreeDTextStudio.3D
[AddComponentMenu("Text Studio/3D Interaction Controller")]
[DisallowMultipleComponent]
public sealed class TextStudio3DInteractionController : MonoBehaviour

No-code controller that applies a tuned force or motion preset to a Text Studio 3D renderer, optionally tracking a world-space target for continuous repel or magnet effects.

public void Trigger()

Applies the selected preset using the configured target, strength, radius, and reduced motion preference.

public void SetTargetWorldPosition(Vector3 worldPosition)

Moves the active interaction origin without requiring a target Transform.

Parameters

Name Type Description
worldPosition UnityEngine.Vector3 New origin in world coordinates.
public void ResetInteraction(bool springBack = true)

Clears the active force state on the renderer.

Parameters

Name Type Description
springBack System.Boolean Whether glyphs should animate back to their authored positions.

public TextStudio3DInteractionController()

public TextStudio3DText Renderer { get; set; }

Returns

TextStudio.ThreeD.TextStudio3DText

public TextStudio3DInteractionPreset Preset { get; set; }

Returns

TextStudio.ThreeD.TextStudio3DInteractionPreset

public Transform Target { get; set; }

Returns

UnityEngine.Transform

public bool ReducedMotion { get; set; }

Returns

System.Boolean

public float Strength { get; set; }

Returns

System.Single

public float Radius { get; set; }

Returns

System.Single

public bool PlayOnEnable { get; set; }

Returns

System.Boolean