# CreateOwnerKey(Object)

> Create an owner key.

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.6/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
public static int CreateOwnerKey(Object owner)
```

### Parameters

**** (\[Object]\(/engine/6000.6/script-reference/unityengine/object)): The object that owns this key. Whilst it is valid to not specify an owner object (NULL), it is recommended as the owner key can use the hash-code of the object to generate a more unique key.

### Returns

| Type                                                       | Description        |
| ---------------------------------------------------------- | ------------------ |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The new owner key. |
