Advanced Search
Search Results
202 total results found
Notes
The '[TppShowAsLabel…]' attributes allow you to display a property. This can be useful in many ways. Here’s an example from TilePlusBase.cs that shows how the Tag property as shown in the Brush Inspector works. /// <summary> ...
Limitations
Code Changes Changing code in subclasses may result in missing references in already-placed clone tiles. This is like what happens in the GameObject hierarchy when components’ internal structure is altered. Adding serialized fields or altering the names of ser...
Notes
Other Uses for Bundled Tilemaps When using Tile+Painter, Bundle assets and TileFabs appear in the Painting Source (center) column and behave as if they were a single tile: you can paint them onto Tilemaps. This means that you can create chunks of tiles and pa...
Tile+Brush
When using the Unity Tilemap Editor (UTE) you can use the Tile+Brush instead of the default GridBrush. The Tile+Brush is installed by default when you install the TilePlus package. The User Guide explains how to revert that if you want to. Brushes have Brush a...
Selection Inspector for Unity tiles
Selection Inspector When displaying a normal Unity tile, the Selection Inspector will look something like this: The small buttons allow you to focus the Scene camera on the tile position or open the tile asset in an Inspector. Note that modifying the tile as...
Selection Inspector for Tile+ tiles
Here’s an example of a Selection Inspector when displaying a TilePlus tile. This is used in Tile+Painter and as the Selection Inspector for the Tile+Brush. Open this image in a new browser window then skip to the next page.
Selection Inspector Details
The Basic Info section displays read-only information from the tile. This area changes depending on what type of tile is being inspected. The last two items on the first line are the state of the tile and the Instance ID. The Toolbar is followed by fields and ...
Selection Inspector Toolbar
The Selection Inspector shows this toolbar: Focus: Focus scene view on selected tile. Inspector: Open an inspector for the tile. Save: Save the tile as a new asset. Inspect Prefab: If the tile has a GameObject then this button appears: open an inspector ...
Brush Inspector
This is the Brush Inspector seen when using the Tile+Brush with the Unity Tile Editor. It looks a bit different in Tile+Painter. The Help foldout at the top has some hints about how to use this inspector, followed by information about the tile. Note that the ...
Layout System Nomenclature
Name Class Type Use TileFabLib Static Loads TileFabs, supervises ZoneManager instances. ZoneManagerLib Static Utilities for ZoneManagers TpChunkedSceneManager Component Loads TScenes (Tile Scenes) under your control. TpZoneLayout Component Control...
Preparing a TScene
Now, how do you create a TileFab for use with this system? You create a TScene in a Unity scene that you use for design purposes only. There are examples of design scenes in the Layout Demo programs. Add a Grid and as many Tilemaps as you need. Design it as yo...
Scene List Editor
Now that you have a TSceneList asset, let's edit it. Examine the asset in an inspector and click the button to open the customized editor window and you’ll see something that looks like this: The left column lists all the TScenes in the asset; there are only ...
Relationships: Chunksize, Padding, Selector
This system is flexible, but it is easy to make mistakes. If you have the chunk size set too large and use large values for padding it’s entirely possible that the entire TileFab for the TScene gets loaded all at once; i.e., no chunking. Internally, the TileFa...
At Runtime...
During your Unity scene initialization you can load the first TScene by calling TpChunkedSceneManager. When the OnAfterTSceneChange callback is handled by your custom code you call the UpdateTickAsync method in TpZoneLayout which fills in the initial camera vi...
Layout System Block Diagram
This block diagram illustrates the main parts of the Layout system. The lowest-level APIs are within TileFabLib and ZoneManagerLib. These libraries handle all the tile/prefab loading and unloading as the camera moves around. The next highest-level component i...
TSceneList
Each TSceneList asset comprises information about one or more TScenes (Tile Scenes). These are shown in the left column of its editor window. You add or delete TScenes with the + and – buttons under the list. When you select a single TScene the right column sh...
TpZoneLayout
You may have noticed in TSceneList that each TScene can have multiple TSceneSpecs. What’s that for? Each TSceneSpec helps ChunkedSceneManager understand which TileFab is used to add tiles to a particular Tilemap group. A Tilemap Group comprises a Grid with one...
Using Multiple ZoneLayouts
This is a really useful feature. You might have a Tilemap Group comprising a Grid with, say, 8 child Tilemaps and want to use a Chunk Size of 16 and a second Group comprising another Grid with a single Tilemap, but you want a Chunk Size of 64 for this Group be...