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 6 days ago

Definition

  • Type: Struct
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public struct PhysicsUserData

Properties

Property

Description

boolValueA custom bool.
floatValueA custom 32-bit float.
int64ValueA custom 64-bit long.
intValueA custom 32-bit int.
objectValueA custom Unity object. To get the EntityId of the object, use _objectValueId.
objectValueIdThe EntityId of a Unity object. This is the object referred to with _objectValue
physicsMaskValueA custom 64-bit PhysicsMask.