Object Collection Class
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A scrollable frame where content scroll is triggered by manual controller click and drag or according to pagination settings.
public ref class ScrollingObjectCollection : UnityEngine::MonoBehaviour, Microsoft::MixedReality::Toolkit::Input::IMixedRealityPointerHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealitySourceStateHandler, Microsoft::MixedReality::Toolkit::Input::IMixedRealityTouchHandler, UnityEngine::EventSystems::IEventSystemHandler
[UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/ScrollingObjectCollection")] [UnityEngine.ExecuteAlways] public class ScrollingObjectCollection : UnityEngine.MonoBehaviour, Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointerHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealitySourceStateHandler, Microsoft.MixedReality.Toolkit.Input.IMixedRealityTouchHandler, UnityEngine.EventSystems.IEventSystemHandler
[<UnityEngine.AddComponentMenu("Scripts/MRTK/SDK/ScrollingObjectCollection")>] [<UnityEngine.ExecuteAlways>] type ScrollingObjectCollection = class inherit MonoBehaviour interface IMixedRealityPointerHandler interface IEventSystemHandler interface IMixedRealitySourceStateHandler interface IMixedRealityTouchHandler
Public Class ScrollingObjectCollection Inherits MonoBehaviour Implements IEventSystemHandler, IMixedRealityPointerHandler, IMixedRealitySourceStateHandler, IMixedRealityTouchHandler
IMixedRealityPointerHandler IMixedRealitySourceStateHandler IMixedRealityTouchHandler UnityEngine.EventSystems.IEventSystemHandler
Executing also in edit mode to properly catch and mask any new content added to scroll container.
Event that is fired on the target object when the ScrollingObjectCollection deems event as a Click.
Event that is fired on the target object when the ScrollingObjectCollection is no longer in motion from velocity
Event that is fired on the target object when the ScrollingObjectCollection is starting motion with velocity.
Event that is fired on the target object when the ScrollingObjectCollection is no longer touched.
Event that is fired on the target object when the ScrollingObjectCollection is touched.
The amount of time (in seconds) the PaginationCurve will take to evaluate.
Multiplier to add more bounce to the overscroll of a list when using FalloffPerFrame or FalloffPerItem.
Enables/disables scrolling with near/far interaction.
Depth of cell used for masking out content renderers that are out of bounds.
Height of the pagination cell.Hhide
Number of cells in a row on up-down scroll or number of cells in a column on left-right scroll.
Width of the pagination cell.
The ScrollingObjectCollection's ClippingBox that is used for clipping items in and out of the list.
The empty GameObject containing the ScrollingObjectCollection's ClippingBox.
Edit modes for defining the scroll interaction collider boundaries. Choose 'Auto' to automatically use pagination values. Choose 'Manual' for enabling direct manipulation of the collider.
Disables GameObjects with Renderer components which are clipped by the clipping box. Improves performance significantly by reducing the number of GameObjects that need to be managed in engine.
Disables the Renderer components of Gameobjects which are clipped by the clipping box. Improves performance by reducing the number of renderers that need to be tracked, while still allowing the GameObjects associated with those renders to continue updating. Less performant compared to using DisableClippedGameObjects
Index of the first hidden cell.
Index of the first visible cell.
Distance, in meters, to position a local xy plane used to verify if a touch interaction started in the front of the scroll view.
The distance, in meters, the current pointer can travel along the scroll direction before triggering a scroll drag.
Tracks whether the scroll has any kind of momentum. True if scroll is being dragged by a controller, the velocity is falling off after a drag release or during pagination movement.
Tracks whether the scroll is being dragged due to a controller movement.
Tracks whether content or scroll background is being interacted with.
Tracks whether the scroll content or background is touched by a near pointer. Remains true while the same near pointer does not cross the scrolling release boundaries.
Edit modes for defining the clipping box masking boundaries. Choose 'Auto' to automatically use pagination values. Choose 'Manual' for enabling direct manipulation of the clipping box object.
Visibility mode of scroll content. Default value will mask all objects outside of the scroll viewable area.
Animation curve used to interpolate the pagination and movement methods.
Withdraw amount, in meters, from the back of the scroll boundary needed to transition from touch engaged to released.
Withdraw amount, in meters, from the front of the scroll boundary needed to transition from touch engaged to released.
Withdraw amount, in meters, from the right or left of the scroll boundary needed to transition from touch engaged to released.
Withdraw amount, in meters, from the top or bottom of the scroll boundary needed to transition from touch engaged to released.
The local position of the moving scroll container. Can be used to represent the container drag displacement.
The direction in which content should scroll.
Scrolling interaction collider used to catch pointer and touch events on empty spaces.
Scrolling interaction touchable used to catch touch events on empty spaces.
Number of visible tiers in the scrolling area.
The desired type of velocity for the scroller.
Toggles whether Camera OnPreRender callback will be used to manage content visibility. The fallback is MonoBehaviour.LateUpdate().
Amount of drag applied to velocity.
Amount of (extra) velocity to be applied to scroller.
Safely adds a child game object to scroll collection.
Checks whether the given cell is visible relative to viewable area or page.
|MoveByPages(Int32, Boolean, Action)||
Moves scroller container by a multiplier of the number of tiers in the viewable area.
|MoveByTiers(Int32, Boolean, Action)||
Moves scroller container a relative number of tiers of cells.
|MoveToIndex(Int32, Boolean, Action)||
Moves scroller container to a position where the selected cell is in the first tier of the viewable area.
Safely removes a child game object from scroll content and clipping box.
Resets the ScrollingObjectCollection
Sets up the scroll clipping object and the interactable components according to the scroll content and chosen settings.