文档

Unity Engine

Unity Engine

rendererShaderUserValue

The integer assigned to the renderer as a custom value.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public uint rendererShaderUserValue { readonly get; set; }

Remarks

Use this property to change how a shader draws each rendered instance, without using different materials or additional CPU time. The default value is 0.
For more information, refer to MeshRenderer.SetShaderUserValue.