Version: 2019.2
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.