Show / Hide Table of Contents

Class ModelTileConnectivityCalculator

This class calculates the connections between models that will be used for modules.

Inheritance
System.Object
ModelTileConnectivityCalculator
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: CarbideFunction.Wildtile.Editor
Syntax
public static class ModelTileConnectivityCalculator

Fields

faceDefinitions

Declaration
public static readonly List<ModelTileConnectivityCalculator.ConnectiveFaceDefinition> faceDefinitions
Field Value
Type Description
System.Collections.Generic.List<ModelTileConnectivityCalculator.ConnectiveFaceDefinition>

Contains populated ConnectiveFaceDefinitions for all 6 faces

Methods

DirectionToConnectiveFace(Face)

Declaration
public static ModelTileConnectivityCalculator.ConnectiveFaceDefinition DirectionToConnectiveFace(Face direction)
Parameters
Type Name Description
Face direction
Returns
Type Description
ModelTileConnectivityCalculator.ConnectiveFaceDefinition

GetConnectivityFromPrefab(GameObject, Single, Single, List<MaterialImportSettings>, ModelTileConnectivityCalculator.VertexContentsInferenceDiagnostics)

Calculate the connections for a model prefab. This includes each face's edges and whether the cube corners are inside or outside the model.

Declaration
public static ModelTileConnectivityCalculator.ModuleConnectivityData GetConnectivityFromPrefab(GameObject prefab, float tileWidth, float tileHeight, List<MaterialImportSettings> materialImportSettings, ModelTileConnectivityCalculator.VertexContentsInferenceDiagnostics vertexContentsDiagnostics = null)
Parameters
Type Name Description
GameObject prefab

The model prefab that will be

System.Single tileWidth

The XZ width for the prefab

System.Single tileHeight

The Y height for the prefab

System.Collections.Generic.List<MaterialImportSettings> materialImportSettings
ModelTileConnectivityCalculator.VertexContentsInferenceDiagnostics vertexContentsDiagnostics

If non-null, this instance will be called during the calculations as described in ModelTileConnectivityCalculator.VertexContentsInferenceDiagnostics method descriptions

Returns
Type Description
ModelTileConnectivityCalculator.ModuleConnectivityData
In This Article
Generated by DocFX Version: 3.2.1 - click to show/hide other versions