ArrayOccluder3D
Occluder geometry defined by vertex and triangle-index arrays.
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
public ArrayOccluder3D();Properties2
IndicesProperty
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
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
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.
| Name | Type | Default |
|---|---|---|
vertices | Vector3[] | — |
indices | int[] | — |
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.
| Name | Type | Default |
|---|---|---|
vertices | ReadOnlySpan<Vector3> | — |
indices | ReadOnlySpan<int> | — |
SetIndices2 overloads
public void SetIndices(int[] indices);| Name | Type | Default |
|---|---|---|
indices | int[] | — |
public void SetIndices(ReadOnlySpan<int> indices);| Name | Type | Default |
|---|---|---|
indices | ReadOnlySpan<int> | — |
SetVertices2 overloads
public void SetVertices(Vector3[] vertices);| Name | Type | Default |
|---|---|---|
vertices | Vector3[] | — |
public void SetVertices(ReadOnlySpan<Vector3> vertices);| Name | Type | Default |
|---|---|---|
vertices | ReadOnlySpan<Vector3> | — |