Show / Hide Table of Contents

Class Tileset

A processed tileset stored in a Unity asset, ready for use in the Wildtile implementation of the wave function collapse algorithm.

Warning

This asset is not designed to be directly modified by users of Wildtile. Instead, use a TilesetImporterAsset and TilesetImporter to populate the Tileset asset. Take special care if editing it directly.

Inheritance
System.Object
Tileset
Namespace: CarbideFunction.Wildtile
Syntax
public class Tileset : ScriptableObject

Properties

Modules

Readonly access to the raw modules. These are not transformed and do not have their corner contents.

Declaration
public List<Module> Modules { get; }
Property Value
Type Description
List<Module>

Postprocessor

Readonly access to the postprocessor.

Declaration
public Postprocessor Postprocessor { get; }
Property Value
Type Description
Postprocessor

TileDimensions

Readonly access to the size of a single tile's bounding box in this tileset. All tiles have that same bounding box.

To change the tileDimensions, change the tileDimensions in TilesetImporterAsset and reimport the tileset.

Declaration
public Vector3 TileDimensions { get; }
Property Value
Type Description
Vector3

Methods

CreateSlotGridFromVoxelGrid(VoxelGrid, Boolean, Boolean, Boolean)

Declaration
public SlotGrid CreateSlotGridFromVoxelGrid(VoxelGrid sourceGrid, bool createBottomTiles, bool createSideTiles, bool createTopTiles)
Parameters
Type Name Description
VoxelGrid sourceGrid
System.Boolean createBottomTiles
System.Boolean createSideTiles
System.Boolean createTopTiles
Returns
Type Description
SlotGrid

GetSlotContents(VoxelGrid, Vector3Int)

Declaration
public int GetSlotContents(VoxelGrid sourceGrid, Vector3Int coords)
Parameters
Type Name Description
VoxelGrid sourceGrid
Vector3Int coords
Returns
Type Description
System.Int32
In This Article
Generated by DocFX Version: 4.1.0 - click to show/hide other versions