文档

Unity Engine

Unity Engine

prefixedRenderingLayerMaskNames

Returns the names of the Rendering Layer Masks for this pipeline, with each name prefixed by a unique numerical ID.
阅读时间1 分钟最后更新于 1 个月前

Definition

警告
Deprecated. This property is obsolete. Use RenderingLayerMask API and Tags & Layers project settings instead. #from(23.3)
public virtual string[] prefixedRenderingLayerMaskNames { get; }

Remarks

This property is useful for creating custom Editor UI for a render pipeline. If the array of Rendering Layer Mask names contains duplicate names, this property lets you distinguish them by their prefix.