Version: Unity 6.1 Alpha (6000.1)
LanguageEnglish
  • C#

CanvasRenderer.SetSecondaryTexture

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

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.

Description

Sets the secondary texture usable by this renderer at the specified index with the specified shader property name.