Propiedades
Nombre | Tipo | Descripción | Nombre del script |
---|---|---|---|
Enable | Bool | Whether to enable collision | Enable |
Is trigger | Bool | Solo lectura Whether or not to act as a trigger |
IsTrigger |
Physical Layer | Int | Physical layers, configure layers in the physics module, up to 16. | PhysicalLayer |
Event
Nombre | Descripción |
---|---|
On Collision Enter | Triggered when an entity collides. Only entities with rigidbody components attached support this event. |
On Collision Exit | Triggered when the entity collision ends. Only entities with rigidbody components attached support this event. |