Component:ColliderUserTracker: Difference between revisions

From Resonite Wiki
Zandario (talk | contribs)
m Removed old Vids & Issues + Added Stubs
 
m ProbablePrime moved page ColliderUserTracker (Component) to Component:ColliderUserTracker: Creating component Namespace
(No difference)

Revision as of 06:29, 20 January 2024


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


Component image 
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

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


Examples

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