Unity - Scripting API: GameObject.sceneCullingMask
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
public ulong sceneCullingMask;
Description
The Scene culling mask defined for the GameObject. (Read Only)
Unity uses SceneCullingMasks to determine which scene to render the GameObject in. The sceneCullingMask is a bitfield stored as an unsigned 64-bit integer ulong. Cameras only render an object in a scene if the bits set on the Scene's mask (retrievable withEditorSceneManager.GetSceneCullingMask) match those in the object's sceneCullingMask.