Advanced Search
Search Results
202 total results found
Details
As mentioned before, TpTileBundle (Bundle) assets are used to archive all or a section of a Tilemap. TpTileFab (TileFab) assets combine references to several Bundles, creating an archive of one or more Tilemaps; a multiple-Tilemap prefab of a sort. In Bundles,...
Exposition
A TileFab can encompass all the tiles and Prefabs contained within a Tilemap hierarchy (Grid with child Tilemaps). The simplest use for this sort of a TileFab is to just load the whole thing at once to populate an area of a scene with tiles in one operation. H...
Infrastructure
Review Bundle: an archive of all the tiles and Prefabs for a single Tilemap. TileFab: references a group of Bundles. Let’s review what type of data are in a Bundle asset: A List of TilePlus Tiles. A List of Unity Tiles. A List of Prefabs. Indexed Lists of Til...
TileFabLib
TileFabLib.LoadTileFab loads the Bundles referenced by a TileFab asset. The TileFab asset has references to one or more Bundle assets, which include all the information required to recreate the tiles. There are both Async and non-Async overloads for this metho...
Grid Selections
One might recall from the User Guide that you can create TileFabs and Bundles using a Grid Selection. A Grid Selection is when you use the Palette or Tile+Painter to make an area selection in a Tilemap. If the Bundler tool sees an active Grid Selection, it wil...
TpZoneManager
TpZoneManager is a chunk management subsystem. Your code interacts with instances of the TpZoneManager class, which are Scriptable Object instances created at runtime by using TileFabLib. The Layout demo programs illustrate how to use the system. TileFabLib im...
The Super-Grid
When you initialize a ZM with a chunk size and world origin you’re defining a higher-dimension or super-grid (sGrid) virtually layered on top of the normal Tilemap Grid. In the illustration below, one Chunk is any number of Tilemap locations, from 4x4 to 128x1...
Useful Methods, Camera Projection, Notes
The GetLocator methods allow you to also pass in a Vector2Int dimensions parameter. This lets you create arbitrary-sized Locators. Normally, Locators are the size of a chunk. If you do not pass-in dimensions, that’s the size that’s used. Using a different dime...
TpZoneLayout
At an even higher level, the TpZoneLayout MonoBehaviour component leverages a ZM to implement a basic camera Viewport chunking system. This component can be used as is, or as a base class for something more complex. Examine the “Layout” demo to see how to use ...
Layout System : Introduction
TilePlus Toolkit’s Layout system was changed in Versions 4 and 5. It’s more memory efficient and sports better performance. The older system required the use of a Template Tool to break up a set of layered Tilemaps into numerous TileFabs and their child TileBu...
Why Use New GUIDs?
If you want to load the same TileFab multiple times programmatically you need to set the newGuids option true when using LoadTilefab. This is because a TilePlus Tile’s GUID is used in TpLib, and unsurprisingly, GUIDs are expected to be unique. Recall: if the s...
Preparing for Builds
When using ZoneManager and ZoneLayout, you need to ensure that the referenced TileFabs are correctly included in a build. This is because the system must use TileFab GUIDs to locate each TileFab when using RestoreFromZoneRegJson. When calling EnableZoneManager...
TpBundleLoader, TpFabLoader
These are components that can be added Tilemap’s GameObject to load TileBundle or TileFab archives. TpTileBundle or TpTileFab: the primary asset which holds all the tile assets and their locations. LoadOnRun: automatically load when app runs. Uses LoadPrefabs...
TpSpawnLink
This component should be attached to any prefab that you use with the SpawningUtil pooling system. If you forget it, SpawningUtil will automatically add it for you, but that’s a tiny bit slower. If you add it to a prefab manually you can use some of its specia...
Unity UI and New Input System
Unity UI can invoke methods in monobehaviour targets using Unity events. That's not useful if you want, say, a button click to send a message to a tile. If you're using the New Input System it can be handly to translate a mouse click or some other Action to l...
Others
Tilemap Parallax Add it to a Tilemap, provide a follow target, and this component offsets the Tilemap's transform as the target moves. See the Side-scroll Layout demo. SetDontDestroy Add it to a GameObject and DontDestroyOnLoad will be set on Start(). TpNoPain...
TilePlus Script Attributes
If you’ve done any Unity coding then you’re probably familiar with Attributes by now, such as those having to do with serialization, or those affecting inspectors. The normal Unity Tile Selection inspector only displays the fields of the Tile class and no othe...
Common Parameters
Common Parameters These parameters apply to all Attributes except TptShowAsLabelBrushInspector. table th:first-of-type { width: 25%; } table th:nth-of-type(2) { width: 20%; } Param Value Description spaceMode enum SpaceMode Adds space or a li...