Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

owner

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

intThe new owner key.