ドキュメント

Unity Engine

Unity Engine

SetSecondaryTexture(int, string, Texture2D)

Sets the secondary texture usable by this renderer at the specified index with the specified shader property name.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UIModule
public void SetSecondaryTexture(int index, string name, Texture2D texture)

Parameters

index

The index in the secondary texture array of this renderer where to set data.

name

The shader property name associated with the secondary texture.

texture

The secondary texture usable by this renderer in a shader.