PhysicsUserData
Custom user data. The physics system doesn't use this data, it is entirely for custom use.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public struct PhysicsUserData
Properties
Property | Description |
|---|---|
| boolValue | A custom Boolean. |
| floatValue | A custom 32-bit Single. |
| int64Value | A custom 64-bit Int64. |
| intValue | A custom 32-bit Int32. |
| objectValue | A custom Unity object. To get the EntityId of the object, use PhysicsUserData.objectValueId. |
| objectValueId | The EntityId of a Unity object. This is the object referred to with PhysicsUserData.objectValue |
| physicsMaskValue | A custom 64-bit PhysicsMask. |