default2DMaskMaterial
Gets the default 2D Mask Material used by Sprite Masks in Universal Render Pipeline.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public virtual Material default2DMaskMaterial { get; }
Remarks
This method returns the default material for Sprite Masks. Unity calls this method automatically when creating a new Sprite Mask in the Editor.