Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

MaterialPropertyBlock.GetTexture

public Texture GetTexture(string name);
public Texture GetTexture(int nameID);

Parameters

nameIDThe name ID of the property retrieved by Shader.PropertyToID.
nameThe name of the property.

Description

Get a texture from the property block.

Returns null if not found.

Did you find this page useful? Please give it a rating: