文档

Unity Engine

Unity Engine

name

Name of the property (Read Only).
阅读时间1 分钟最后更新于 9 小时前

Definition

public string name { get; }

Remarks

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