GetSceneCullingMask(Scene)
Return the culling mask set on the given Scene.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEditor.SceneManagement
- Assembly: UnityEditor
public static ulong GetSceneCullingMask(Scene scene)
Parameters
The scene to get the culling mask from.
Returns
Type | Description |
|---|---|
| ulong | The scene's current culling mask as a bitfield. |
Remarks
The culling mask for a Scene is used by Cameras to determine which Scenes should appear in the Cameras final render target. Culling masks are stored as a bitfield.