Documentation

Unity Engine

Unity Engine

name

Name of the property (Read Only).
Read time 1 minuteLast updated 9 hours ago

Definition

public string name { get; }

Remarks

This is the variable name that is used in the shader, for example _MainTex.
Additional Resources: MaterialProperty.displayName.