# SetOwnerUserData(PhysicsUserData, int)

> Set PhysicsUserData that can be used for any purpose, typically by the owner only.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

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

### Parameters

**** (\[PhysicsUserData]\(/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsuserdata)): The user data to set.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Optional owner key returned when using [PhysicsJoint.SetOwner](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d/physicsjoint/setowner.md).
