Show / Hide Table of Contents

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
Namespace: Global
Assembly: cs.temp.dll.dll
Syntax
public class MeshUsageCase : ICloneable

Fields

applyConditionsToAllRotations

Declaration
public bool applyConditionsToAllRotations
Field Value
Type Description
System.Boolean

axis

Declaration
public RotationAxis axis
Field Value
Type Description
RotationAxis

blockMeshLodGroup

Asset that contains all the meshes for different variations, LODs, and collider.

Declaration
public BlockMeshLodGroup blockMeshLodGroup
Field Value
Type Description
BlockMeshLodGroup

conditions

A list of conditions that must be met for this case to be chosen.

Declaration
public List<OffsetCondition> conditions
Field Value
Type Description
List<OffsetCondition>

decorativeBuilders

Declaration
public CustomBuilder[] decorativeBuilders
Field Value
Type Description
CustomBuilder[]

dontRotateBaseMesh

Declaration
public bool dontRotateBaseMesh
Field Value
Type Description
System.Boolean

enabled

Declaration
public bool enabled
Field Value
Type Description
System.Boolean

foldout

Declaration
public bool foldout
Field Value
Type Description
System.Boolean

importRotation

Declaration
public Vector3 importRotation
Field Value
Type Description
Vector3

isMeshAlternatesFacesConcave

PerFaceFlag for each item in meshAlternates.

Declaration
public PerFaceFlag[] isMeshAlternatesFacesConcave
Field Value
Type Description
PerFaceFlag[]

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
Type Description
PerFaceFlag

mesh

Unity gameobject (mesh or prefab) to use, not accessible on other threads.

Declaration
public GameObject? mesh
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
public object Clone()
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
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾