Namespace CarbideFunction.Wildtile.Editor
Classes
CustomDrawing
DualGridVoxelMeshBackupTilesEditor
Custom editor for DualGridVoxelMeshBackupTiles.
Provides the ability to generate and populate the backup model game objects.
DualGridVoxelMeshPlaceholderTilesEditor
Custom editor for DualGridVoxelMeshPlaceholderTiles.
Provides the ability to generate and populate the placeholder model game objects.
EditorHash
Folder
GridPlacerEditor
This class shows information about GridPlacer components in the inspector window. It shows the default inspector fields and adds buttons for interacting with the constructed model grid - one button triggers a force-refresh of the temporary grid and the other button bakes out a permanent instance of the grid's modules that the user can then manipulate afterwards.
The invocation of the WFC algorithm starts in GridPlacer.
This does not affect the onscreen grid editor - that is implemented in TileMapEditorTool.
HashFaces
ImportDetails
Information about the import, including any issues encountered.
ImportDetails.HashCollision
ImportDetails.ModuleWithFacesOnACubeFace
ImportDetails.OutOfBoundsModule
ImportDetails.SuperInsideCornerModule
Installer
Installer.Data
LayerAttributeEditor
ListViewBinder
This class contains common functions for binding a ListView to a list in Unity's UI Toolkit.
MissingTilesParameters
Backend resource to define the subset of marching cube indices that can be rotated and flipped to create the full 256 marching cube indices. This also includes example models for each marching cube index to show which tiles should be filled.
Intended for use with
MissingTilesParametersEditor
Editor for MissingTilesParameters. Exposes the default editor and adds an auto populator button.
ModelTileConnectivityCalculator
This class calculates the connections between models that will be used for modules.
ModelTileConnectivityCalculator.ConnectiveEdges
This class contains the edges on a module's face.
ModelTileConnectivityCalculator.ConnectiveFaceDefinition
This class describes a face in the context of calculating connections for it. It is used in CarbideFunction.Wildtile.Editor.ModelTileConnectivityCalculator.CacheConnectingEdges(Vector3[],Vector3[],Material[],System.Int32[],SubMeshDescriptor[],Matrix4x4,CarbideFunction.Wildtile.Editor.ModelTileConnectivityCalculator.ModuleConnectivityData,System.Single,System.Single,System.String,System.Collections.Generic.List{CarbideFunction.Wildtile.ImporterSettings.MaterialImportSettings}), which reads from the full list of all 6 cube faces in faceDefinitions
ModelTileConnectivityCalculator.ModuleConnectivityData
This class contains all the calculated data about a module, including the connections and cube corner contents.
ModelTileConnectivityCalculator.VertexContentsInferenceDiagnostics
This abstract class is an interface to receive calculation diagnostics. GetConnectivityFromPrefab(GameObject, Single, Single, List<MaterialImportSettings>, ModelTileConnectivityCalculator.VertexContentsInferenceDiagnostics) calls the methods while calculating the connectivity.
ProjectSettings
ProjectSettingsProvider
RedrawSceneViews
RenderPipelineDetector
SearchConfiguration
Class representing a single marching cube to search for, and an example mesh that shows which corners this marching cube would cover.
TileMapEditorTool
This class is a Unity Tool that allows the user to visually edit GridPlacer maps. It affects the data in VoxelGrid.
Opening this tool will replace the selected GridPlacer's models with a simple voxel grid that can be edited by the user. See the manual pages for information on how to use the tool.
TilesetAnalyzer
This class provides the implementation of the analysis of user's marching cubes, reporting any errors or warnings it finds. These reports indicate to the user what is wrong and the user can make necessary steps to remedy them, or ignore them in the case of benign warnings.
The errors and warnings are split into three categories:
Error/Warning Name | Description |
---|---|
Structural errors |
These errors are unrecoverable, and will likely prevent both the rest of the analysis and the WFC algorithm from running. They include cases such as internal indices being out of range, or two modules having the same ID.
The CarbideFunction importer will not generate assets with these errors - if the asset was edited by hand then a reimport will fix them. If a custom importer generated the asset then the importer should be fixed. |
Content errors | These errors will prevent modules from being available in the generated map. This means that the work put in to create and maintain them will never be seen by the player. This includes cases such as a module's face not matching any other module faces in the asset, so it will never be picked. |
Marching cube warnings | These warnings indicate that some voxel maps will not work if they include specific layouts of voxels. They are a normal and commonplace occurance when developing a tileset, and are even seen in production ready tilesets - for example, a city tileset will typically be built from the ground up, and might not include the modules for voxels overhanging one another. |
TilesetAnalyzer.Report
Describes a marching cube asset's issues.
TilesetAnalyzer.UnconnectableModule
Describes a module that cannot be connected and indicates which face cannot be satisfied. Used by TilesetAnalyzer.Report.
TilesetImporterEditor
This class manages the UI frontend for the TilesetImporter. It adds buttons and functionality to import basic models into a Tileset asset.
TilesetImporterEditor.FaceIdentifierAndOppositeHash
TilesetInspector
This class manages the UI for the module inspector and interacts with the TilesetInspectorStage to show the modules and their connections to the user.
TilesetInspectorComparison
TilesetInspectorComparison.ComparisonResult<Value>
TilesetInspectorComparison.PreviouslyMatchedComparisonResult<Value>
TilesetInspectorSettings
TilesetInspectorStage
This class acts as a Unity Stage that manages instances of Wildtile module prefabs. It is created and decorated by TilesetInspector.
TransientUserSettings
Settings in this class will be reset when the user shuts down the Unity Editor.
This is useful for settings that can cause extreme log-spam, which slows the editor down and consumes a lot of memory and in extreme cases crashes the user's computer.
TriangleOnModuleFaceDetector
Class holding methods for checking if triangles are on any of a module's faces.
Any tris that are on one of a module's faces can cause the importer to miscalculate the corner contents and the face-face connections.
UserSettings
UserSettingsSettingsProvider
VoxelGridEditor
This editor window will open while the user selects a VoxelGrid. It handles the cases where the user changes the dimensions of the grid, maintaining the contents while changing their dimensions to match.