ドキュメント

Unity Engine

Unity Engine

SetName(string, int)

Set the name of the world, truncated to PhysicsConstants.MaxWorldNameLength characters. The name of the PhysicsWorld.defaultWorld cannot be set and will always be "Default World".
読み終わるまでの所要時間 1 分最終更新 22日前

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public void SetName(string name, int ownerKey = 0)

Parameters

name

The name to set.

ownerKey

Optional owner key returned when using PhysicsWorld.SetOwner.

Remarks