NetworkTrigger
NetworkTrigger is used to execute trigger events for use with prediction.
Description
This component is used for receiving trigger events for prediction enabled objects for 2D Colliders. It is very much equivalent to a Collider's OnTriggerEnter
, OnTriggerExit
, and OnTriggerStay
messages, except that to receive these you would add this component to your game object and subscribe to its public events.
Check out this API page here for the specific details.
Settings

⚙️ Maximum Simultaneous Hits
This is the maximum number of simultaneous hits that the component will check for. You can use this field to customize how many overlapping colliders the component should be able to detect. It should be noted that having too large of a value will decrease its performance. In most cases, the default value of 16 suffices.
⚙️ Additional Size
The Additional Size determines the distance in units by which collision traces are extended. This extension helps prevent missed overlaps when colliders do not intersect sufficiently. Depending on the scale used in your game you may want to raise or lower this value.
⚙️ Layers
These are the Layers to detect collisions on. This is used when value is not set as Nothing.
Last updated