TileFabLib, ZoneManagers, and Layout
Exposition
A TileFab can encompass all the tiles and Prefabs contained within a Tilemap hierarchy (Grid with...
Infrastructure
Review Bundle: an archive of all the tiles and Prefabs for a single Tilemap. TileFab: references ...
TileFabLib
TileFabLib.LoadTileFab loads the Bundles referenced by a TileFab asset. The TileFab asset has ref...
Grid Selections
One might recall from the User Guide that you can create TileFabs and Bundles using a Grid Select...
TpZoneManager
TpZoneManager is a chunk management subsystem. Your code interacts with instances of the TpZoneMa...
The Super-Grid
When you initialize a ZM with a chunk size and world origin you’re defining a higher-dimension or...
Useful Methods, Camera Projection, Notes
The GetLocator methods allow you to also pass in a Vector2Int dimensions parameter. This lets you...
TpZoneLayout
At an even higher level, the TpZoneLayout MonoBehaviour component leverages a ZM to implement a b...
Layout System : Introduction
TilePlus Toolkit’s Layout system was changed in Versions 4 and 5. It’s more memory efficient and ...
Layout System Nomenclature
Name Class Type Use TileFabLib Static Loads TileFabs, supervises ZoneManager instances. ...
Preparing a TScene
Now, how do you create a TileFab for use with this system? You create a TScene in a Unity scene t...
Scene List Editor
Now that you have a TSceneList asset, let's edit it. Examine the asset in an inspector and click ...
Relationships: Chunksize, Padding, Selector
This system is flexible, but it is easy to make mistakes. If you have the chunk size set too larg...
At Runtime...
During your Unity scene initialization you can load the first TScene by calling TpChunkedSceneMan...
Layout System Block Diagram
This block diagram illustrates the main parts of the chunking system. The lowest-level APIs are ...
TSceneList
Each TSceneList asset comprises information about one or more TScenes (Tile Scenes). These are sh...
TpZoneLayout
You may have noticed in TSceneList that each TScene can have multiple TSceneSpecs. What’s that fo...
Using Multiple ZoneLayouts
This is a really useful feature. You might have a Tilemap Group comprising a Grid with, say, 8 ch...
Zones and LoadFlags
Zones A Zone is a square area of a Tilemap which is internally represented by a RectInt. The X an...
Selectors
Selectors are used by the layout system to determine what and how to load. Each Selector has a re...
TSceneInitializer
You use one of the SetScene overloads of ChunkedSceneManager to change TScenes. The very last thi...
About the Layout Demo
Save Files There are two different types of save files: CdemoSaveFile.txt: contains the GUID of ...
Using PositionDb Service with Layout
The TilePositionDb is a Scriptable Runtime Service: it’s an optional feature that you can use to ...