기술 자료

Unity Engine

Unity Engine

PhysicsUserData

Custom user data. The physics system doesn't use this data, it is entirely for custom use.
읽는 시간 1분최근 업데이트: 7일 전

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 ulong.
intValueA custom 32-bit int.
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.