Class BlockMeshLodGroup
A group of meshes for a block, LOD0 contains the highest detail varians, LOD1 contains mid detail and LOD2 contains low detail.
Inheritance
System.Object
BlockMeshLodGroup
Namespace: Global
Assembly: cs.temp.dll.dll
Syntax
public class BlockMeshLodGroup : ScriptableObject
Fields
Collider
Mesh collider used for block.
Declaration
public Mesh? Collider
Field Value
Type | Description |
---|---|
System.Nullable<Mesh> |
LOD0
An array of a single mesh, or multiple meshes used as variants.
Declaration
public MeshAndFlags[] LOD0
Field Value
Type | Description |
---|---|
MeshAndFlags[] |
LOD1
A temporary backwards compatible mesh that will work with the existing materials until LODs get rendered separately.
Declaration
public MeshAndFlags LOD1
Field Value
Type | Description |
---|---|
MeshAndFlags |
LOD2
Declaration
public MeshAndFlags LOD2
Field Value
Type | Description |
---|---|
MeshAndFlags |
Methods
GetLodMesh(Int32, Int32)
Declaration
public Mesh? GetLodMesh(int lod, int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | lod | |
System.Int32 | index |
Returns
Type | Description |
---|---|
System.Nullable<Mesh> |