TextStudio3DInteractionController
[AddComponentMenu("Text Studio/3D Interaction Controller")][DisallowMultipleComponent]public sealed class TextStudio3DInteractionController : MonoBehaviourNo-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.
Methods
Section titled “Methods”
Trigger()
Section titled “Trigger()”public void Trigger()Applies the selected preset using the configured target, strength, radius, and reduced motion preference.
SetTargetWorldPosition(Vector3)
Section titled “SetTargetWorldPosition(Vector3)”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. |
ResetInteraction(bool)
Section titled “ResetInteraction(bool)”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. |
Constructors
Section titled “Constructors”
TextStudio3DInteractionController()
Section titled “TextStudio3DInteractionController()”public TextStudio3DInteractionController()Properties
Section titled “Properties”
Renderer
Section titled “Renderer”public TextStudio3DText Renderer { get; set; }Returns
TextStudio.ThreeD.TextStudio3DText
Preset
Section titled “Preset”public TextStudio3DInteractionPreset Preset { get; set; }Returns
TextStudio.ThreeD.TextStudio3DInteractionPreset
Target
Section titled “Target”public Transform Target { get; set; }Returns
UnityEngine.Transform
ReducedMotion
Section titled “ReducedMotion”public bool ReducedMotion { get; set; }Returns
System.Boolean
Strength
Section titled “Strength”public float Strength { get; set; }Returns
System.Single
Radius
Section titled “Radius”public float Radius { get; set; }Returns
System.Single
PlayOnEnable
Section titled “PlayOnEnable”public bool PlayOnEnable { get; set; }Returns
System.Boolean