Skip to content

TextStudio3DRepositionHandle

ClassTextStudio.ThreeDTextStudio.3D
[AddComponentMenu("Text Studio/Spatial UI/3D Reposition Handle")]
public sealed class TextStudio3DRepositionHandle : TextStudio3DControl

Moves a target transform along a pointer-defined drag plane while retaining the standard spatial control lifecycle.

OnPointerPressed(TextStudio3DInteractionContext)

Section titled “OnPointerPressed(TextStudio3DInteractionContext)”
protected override void OnPointerPressed(TextStudio3DInteractionContext context)

Allows a subclass to initialize state for an accepted primary-button press.

Parameters

Name Type
context TextStudio.ThreeD.TextStudio3DInteractionContext

OnPointerDragged(TextStudio3DInteractionContext)

Section titled “OnPointerDragged(TextStudio3DInteractionContext)”
protected override void OnPointerDragged(TextStudio3DInteractionContext context)

Allows a subclass to update its value or transform from an accepted pointer drag.

Parameters

Name Type
context TextStudio.ThreeD.TextStudio3DInteractionContext

OnPointerReleased(TextStudio3DInteractionContext)

Section titled “OnPointerReleased(TextStudio3DInteractionContext)”
protected override void OnPointerReleased(TextStudio3DInteractionContext context)

Allows a subclass to finalize an accepted pointer release before optional activation.

Parameters

Name Type
context TextStudio.ThreeD.TextStudio3DInteractionContext

OnPointerCanceled(TextStudio3DInteractionContext)

Section titled “OnPointerCanceled(TextStudio3DInteractionContext)”
protected override void OnPointerCanceled(TextStudio3DInteractionContext context)

Allows a subclass to discard transient state after a pointer session is canceled.

Parameters

Name Type
context TextStudio.ThreeD.TextStudio3DInteractionContext
protected override void PerformActivation()

Applies the subclass’s semantic activation after common interactability checks.

public TextStudio3DRepositionHandle()

public Transform Target { get; set; }

Returns

UnityEngine.Transform

public UnityEvent<Vector3> OnPositionChanged { get; }

Returns

UnityEngine.Events.UnityEvent{UnityEngine.Vector3}

protected override bool ActivateOnPointerRelease { get; }

Returns

System.Boolean