Documentation

Unity Engine

Download Unity

Unity Engine

SetTexture(Texture)

Sets the texture used by this renderer's material.
Read time 1 minuteLast updated 22 days ago

Definition

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

Parameters

texture

The texture to use for the renderer's material.