Class MeshUsageCase
A single case used in the CustomBuilder. When the conditions are met, the included mesh or alternatives will be used to render a block.
Inheritance
System.Object
MeshUsageCase
Assembly: cs.temp.dll.dll
Syntax
public class MeshUsageCase : ICloneable
Fields
applyConditionsToAllRotations
Declaration
public bool applyConditionsToAllRotations
Field Value
Type |
Description |
System.Boolean |
|
axis
Declaration
Field Value
blockMeshLodGroup
Asset that contains all the meshes for different variations, LODs, and collider.
Declaration
public BlockMeshLodGroup blockMeshLodGroup
Field Value
conditions
A list of conditions that must be met for this case to be chosen.
Declaration
public List<OffsetCondition> conditions
Field Value
decorativeBuilders
Declaration
public CustomBuilder[] decorativeBuilders
Field Value
dontRotateBaseMesh
Declaration
public bool dontRotateBaseMesh
Field Value
Type |
Description |
System.Boolean |
|
enabled
Declaration
Field Value
Type |
Description |
System.Boolean |
|
foldout
Declaration
Field Value
Type |
Description |
System.Boolean |
|
importRotation
Declaration
public Vector3 importRotation
Field Value
isMeshAlternatesFacesConcave
PerFaceFlag for each item in meshAlternates.
Declaration
public PerFaceFlag[] isMeshAlternatesFacesConcave
Field Value
isMeshFacesConcave
A 6 bits flag corresponding to 6 faces of the cube (down, up, left, right, back, front)
ChunkBuilder.FaceRemover3000 uses a more precise algorithm with the corresponding face.
Declaration
public PerFaceFlag isMeshFacesConcave
Field Value
mesh
Unity gameobject (mesh or prefab) to use, not accessible on other threads.
Declaration
Field Value
Type |
Description |
System.Nullable<GameObject> |
|
meshAlternates
Alternate meshes to use based on a per-position noise value. Allows for some variation in blocks.
Declaration
public GameObject[] meshAlternates
Field Value
Type |
Description |
GameObject[] |
|
Methods
Clone()
Declaration
Returns
Type |
Description |
System.Object |
|
GetMeshObjects()
Declaration
public GameObject[] GetMeshObjects()
Returns
Type |
Description |
GameObject[] |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|