default2DMaskMaterial
Gets the default 2D Mask Material used by Sprite Masks in Universal Render Pipeline.
Read time 1 minuteLast updated 4 days ago
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.