文档

Unity Engine

Unity Engine

CreateOwnerKey(Object)

Create an owner key.
阅读时间1 分钟最后更新于 1 个月前

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.