Version: 2023.2

RenderPipelineAsset.default2DMaskMaterial

切换到手册
public Material default2DMaskMaterial ;

返回

Material Returns the default material.

描述

Gets the default 2D Mask Material used by Sprite Masks in Universal Render Pipeline.

This method returns the default material for Sprite Masks. Unity calls this method automatically when creating a new Sprite Mask in the Editor.