SceneCullingBoxclass
A box which can be used to explicitly control scene visibility. There are two modes: 1. Cull inside, hide any objects fully inside the box (excluder) 2. Cull outside, hide any objects not intersecting any cull boxes marked cull outside (includer)
Constructors1
Showing 1 constructors
public SceneCullingBox(Sandbox.SceneWorld world, Transform transform, Vector3 size, Sandbox.SceneCullingBox.CullMode mode)
Create a scene culling box. Each scene world can have a list of boxes which can be used to explicitly cull objects inside or outside the boxes.
| Parameter | Type | Description |
|---|---|---|
| world | SceneWorld | — |
| transform | Transform | — |
| size | Vector3 | — |
| mode | CullMode | — |
No results match this filter.
Methods1
Showing 1 methods
public void Delete()
Delete this culling box. You shouldn't access it anymore.
void—No results match this filter.
Properties5
Showing 5 properties
public virtual sealed bool Sandbox.SceneCullingBox.IsValid { get; set; }
Is this culling box valid, exists inside a scene world.
bool—public Sandbox.SceneCullingBox.CullMode Sandbox.SceneCullingBox.Mode { get; set; }
Cull mode, either inside or outside
public Vector3 Sandbox.SceneCullingBox.Size { get; set; }
Size of this box, transform scale will scale this size
public Transform Sandbox.SceneCullingBox.Transform { get; set; }
Position and rotation of this box, scale will scale the box size
public Sandbox.SceneWorld Sandbox.SceneCullingBox.World { get; set; }
The scene world this culling box belongs to.
No results match this filter.