docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IInteractionCaster

    Basic interface used to define an interaction caster, used by NearFarInteractor.

    Namespace: UnityEngine.XR.Interaction.Toolkit.Interactors.Casters
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    public interface IInteractionCaster

    Properties

    castOrigin

    Source of origin and direction used when updating sample points.

    Declaration
    Transform castOrigin { get; set; }
    Property Value
    Type Description
    Transform
    See Also
    InteractionCasterBase
    ICurveInteractionCaster

    effectiveCastOrigin

    Gets the effective cast origin, which may be different than the castOrigin. The caster may use a different transform, such as one that is stabilized, to conduct the cast.

    Declaration
    Transform effectiveCastOrigin { get; }
    Property Value
    Type Description
    Transform
    See Also
    InteractionCasterBase
    ICurveInteractionCaster

    isInitialized

    Indicates whether the caster has been initialized.

    Declaration
    bool isInitialized { get; }
    Property Value
    Type Description
    bool
    See Also
    InteractionCasterBase
    ICurveInteractionCaster

    Methods

    TryGetColliderTargets(XRInteractionManager, List<Collider>)

    Gets an unsorted list of collider targets

    Declaration
    bool TryGetColliderTargets(XRInteractionManager interactionManager, List<Collider> targets)
    Parameters
    Type Name Description
    XRInteractionManager interactionManager

    XR Interaction manager reference

    List<Collider> targets

    List of target colliders to populate.

    Returns
    Type Description
    bool

    Returns true if collider targets were found.

    See Also
    InteractionCasterBase
    ICurveInteractionCaster

    See Also

    InteractionCasterBase
    ICurveInteractionCaster
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)