기술 자료

Unity Engine

Unity Engine

GetName()

Get the name of the world, or "World #N" where N is the PhysicsWorld.index when no name has been set. The PhysicsWorld.defaultWorld is always named "Default World".
읽는 시간 1분최근 업데이트: 22일 전

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public string GetName()

Returns

Type

Description

stringThe name of the world.

Remarks

A new string is allocated each call, as with any API returning a string such as ToString. See PhysicsWorld.SetName.