PhysicsUserData
Custom user data. The physics system doesn't use this data, it is entirely for custom use.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public struct PhysicsUserData
Properties
Property | Description |
|---|---|
| boolValue | A custom bool. |
| floatValue | A custom 32-bit float. |
| int64Value | A custom 64-bit long. |
| intValue | A custom 32-bit int. |
| objectValue | A custom Unity object. To get the EntityId of the object, use _objectValueId. |
| objectValueId | The EntityId of a Unity object. This is the object referred to with _objectValue |
| physicsMaskValue | A custom 64-bit PhysicsMask. |