设置自定义相机层遮罩

摄像机
Both Server and Client
Both Mobile and PC

设置目标相机的渲染层遮罩,通过列表可以设置相机对所有可见性层级的可见性

声明

func SetCustomCameraCullingMask(target entity<CustomCamera>, cullingMask List<int>)
go

参数

输入

名称 类型 描述
目标 BasicCamera 目标相机实体
层遮罩 ListT_Int 层遮罩,只有填入的层级会显示在目标相机中,留空代表所有层级都显示