Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

public struct PhysicsUserData

Properties

Property

Description

boolValueA custom Boolean.
floatValueA custom 32-bit Single.
int64ValueA custom 64-bit Int64.
intValueA custom 32-bit Int32.
objectValueA custom Unity object. To get the EntityId of the object, use PhysicsUserData.objectValueId.
objectValueIdThe EntityId of a Unity object. This is the object referred to with PhysicsUserData.objectValue
physicsMaskValueA custom 64-bit PhysicsMask.