CreateOwnerKey(Object)
Create an owner key.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public static int CreateOwnerKey(Object owner)
Parameters
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 | The new owner key. |