기술 자료

Unity Engine

Unity Engine

GetTexture(int)

Retrieve the texture which is currently assigned to the specified layer.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public Texture2D GetTexture(int layer = 0)

Parameters

layer

Cannot be larger than PlatformIcon.maxLayerCount.

Returns

Type

Description

Texture2DThe Texture2D assigned to the specified layer.