reckfellENGINE

ArrayOccluder3D

Occluder geometry defined by vertex and triangle-index arrays.

On this page
class ArrayOccluder3DReckfellSharpInherits Occluder3D

An Occluder3D resource backed by vertex and triangle-index arrays. It is used through OccluderInstance3D, rather than being a MeshInstance3D, gameplay prefab or CollisionShape3D.

The 3D importer can collect geometry from several occlusion-hinted objects into one ArrayOccluder3D. Do not assume a separately named resource for each source mesh.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

ArrayOccluder3DConstructor
# ArrayOccluder3D
C#
public ArrayOccluder3D();

Properties2

IndicesProperty
# Indices
C#
public int[] Indices { get; set; }

The occluder's index position. Indices determine which points from the ArrayOccluder3D.Vertices array should be drawn, and in which order. Note: The occluder is always updated after setting this value. If creating occluders procedurally, consider using ArrayOccluder3D.SetArrays instead to avoid updating the occluder twice when it's created.

VerticesProperty
# Vertices
C#
public Vector3[] Vertices { get; set; }

The occluder's vertex positions in local 3D coordinates. Note: The occluder is always updated after setting this value. If creating occluders procedurally, consider using ArrayOccluder3D.SetArrays instead to avoid updating the occluder twice when it's created.

Methods6

SetArrays2 overloads
# SetArrays · 1/2
C#
public void SetArrays(Vector3[] vertices, int[] indices);

Sets ArrayOccluder3D.Indices and ArrayOccluder3D.Vertices, while updating the final occluder only once after both values are set.

Parameters
NameTypeDefault
verticesVector3[]—
indicesint[]—
# SetArrays · 2/2
C#
public void SetArrays(ReadOnlySpan<Vector3> vertices, ReadOnlySpan<int> indices);

Sets ArrayOccluder3D.Indices and ArrayOccluder3D.Vertices, while updating the final occluder only once after both values are set.

Parameters
NameTypeDefault
verticesReadOnlySpan<Vector3>—
indicesReadOnlySpan<int>—
SetIndices2 overloads
# SetIndices · 1/2
C#
public void SetIndices(int[] indices);
Parameters
NameTypeDefault
indicesint[]—
# SetIndices · 2/2
C#
public void SetIndices(ReadOnlySpan<int> indices);
Parameters
NameTypeDefault
indicesReadOnlySpan<int>—
SetVertices2 overloads
# SetVertices · 1/2
C#
public void SetVertices(Vector3[] vertices);
Parameters
NameTypeDefault
verticesVector3[]—
# SetVertices · 2/2
C#
public void SetVertices(ReadOnlySpan<Vector3> vertices);
Parameters
NameTypeDefault
verticesReadOnlySpan<Vector3>—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.