Documentation

Unity Engine

Download Unity

Unity Engine

SetOwnerUserData(PhysicsUserData, int)

Set PhysicsUserData that can be used for any purpose, typically by the owner only.
Read time 1 minuteLast updated 8 hours ago

Definition

public void SetOwnerUserData(PhysicsUserData physicsUserData, int ownerKey = 0)

Parameters

physicsUserData

The user data to set.

ownerKey

Optional owner key returned when using PhysicsJoint.SetOwner.