Set Custom Camera Culling Mask

相機
伺服器端與客戶端
可在 Mobile 端和 PC 端使用

Set the culling mask of the target camera to control visibility across all layers

聲明

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

參數

輸入

名稱 類型 描述
目標 BasicCamera 目標相機實體
層遮罩 ListT_Int 層遮罩,只有填入的層級會顯示在目標相機中,留空代表所有層級都顯示