docs.unity3d.com
    Show / Hide Table of Contents

    Class ShowChildrenInBoundsAction

    Enables any child objects that are within the planar bounds of the proxy.

    Inheritance
    Object
    ShowChildrenInBoundsAction
    Namespace: Unity.MARS.Actions
    Syntax
    public class ShowChildrenInBoundsAction : MonoBehaviour, IMatchVisibilityHandler, IAction, ISimulatable, IUsesMARSTrackableData<MRPlane>, IUsesCameraOffset, IFunctionalitySubscriber<IProvidesCameraOffset>, IRequiresTraits

    Methods

    GetRequiredTraits()

    Get the TraitRequirements that are required by this object

    Declaration
    public TraitRequirement[] GetRequiredTraits()
    Returns
    Type Description
    TraitRequirement[]

    The required traits

    Implements
    IRequiresTraits.GetRequiredTraits()

    Explicit Interface Implementations

    IMatchVisibilityHandler.FilterVisibleObjects(QueryState, QueryResult, List<GameObject>, List<GameObject>)

    Shows and hides child objects based on if they are inside the tracked AR data's bounds

    Declaration
    void IMatchVisibilityHandler.FilterVisibleObjects(QueryState newState, QueryResult queryResult, List<GameObject> objectsToActivate, List<GameObject> objectsToDeactivate)
    Parameters
    Type Name Description
    QueryState newState

    The current state of the parent object

    QueryResult queryResult

    Query data associated with the state change

    List<GameObject> objectsToActivate

    A list containing objects that should be activated

    List<GameObject> objectsToDeactivate

    A list containing objects which should be set to inactive

    Implements
    IMatchVisibilityHandler.FilterVisibleObjects(QueryState, QueryResult, List<GameObject>, List<GameObject>)

    Extension Methods

    IUsesCameraOffsetMethods.GetCameraPositionOffset(IUsesCameraOffset)
    IUsesCameraOffsetMethods.SetCameraPositionOffset(IUsesCameraOffset, Vector3)
    IUsesCameraOffsetMethods.GetCameraYawOffset(IUsesCameraOffset)
    IUsesCameraOffsetMethods.SetCameraYawOffset(IUsesCameraOffset, Single)
    IUsesCameraOffsetMethods.GetCameraScale(IUsesCameraOffset)
    IUsesCameraOffsetMethods.SetCameraScale(IUsesCameraOffset, Single)
    IUsesCameraOffsetMethods.GetCameraOffsetMatrix(IUsesCameraOffset)
    IUsesCameraOffsetMethods.ApplyOffsetToPose(IUsesCameraOffset, Pose)
    IUsesCameraOffsetMethods.ApplyInverseOffsetToPose(IUsesCameraOffset, Pose)
    IUsesCameraOffsetMethods.ApplyOffsetToPosition(IUsesCameraOffset, Vector3)
    IUsesCameraOffsetMethods.ApplyInverseOffsetToPosition(IUsesCameraOffset, Vector3)
    IUsesCameraOffsetMethods.ApplyOffsetToDirection(IUsesCameraOffset, Vector3)
    IUsesCameraOffsetMethods.ApplyInverseOffsetToDirection(IUsesCameraOffset, Vector3)
    IUsesCameraOffsetMethods.ApplyOffsetToRotation(IUsesCameraOffset, Quaternion)
    IUsesCameraOffsetMethods.ApplyInverseOffsetToRotation(IUsesCameraOffset, Quaternion)
    CameraOffsetExtensions.PoseToCameraSpace(IUsesCameraOffset, Pose, Vector3)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023