ColliderUserTracker (Component)

From Neos Wiki
Jump to navigation Jump to search
This page contains changes which are not marked for translation.


This article or section is a Stub. You can help the Neos Wiki by expanding it.


Collider User Tracker component as seen in the Scene Inspector

The ColliderUserTracker keeps track of users who enter and leave a collider of type Trigger. The collider should be of type Trigger because that collider type will detect collisions with users (as long as they are not in noclip locomotion mode).

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated
Enabled Bool Controls whether or not this component is enabled
IsLocalUserInside Bool Becomes set for the local user if the local user is within the collider of the object that this component is attached to.
IsAnyUserInside Bool Becomes set for all users if any user is within the collider of the object that this component is attached to.
NumberOfUsersInside Int Tracks the number of users inside the collider of the object that this component is attached to.
_usersInside SyncBag<UserRef> Data on the users that are inside the collider of the object that this component is attached to.

Usage

Examples

Related Components