文档

Unity Engine

Unity Engine

PhysicsUserData

Custom user data. The physics system doesn't use this data, it is entirely for custom use.
阅读时间1 分钟最后更新于 2 天前

Definition

public struct PhysicsUserData

Properties

Property

Description

boolValueA custom Boolean.
floatValueA custom 32-bit Single.
int64ValueA custom 64-bit UInt64.
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.