文档

Unity Engine

Unity Engine

SetTexture(Texture)

Sets the texture used by this renderer's material.
阅读时间1 分钟最后更新于 21 天前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UIModule
public void SetTexture(Texture texture)

Parameters

texture

The texture to use for the renderer's material.