![]() |
TilePlus Version 5
Unity3D Tilemap Extension
|
Not for use, just a concrete base class. More...


Public Member Functions | |||||
| virtual ? TileFabLoadParams | Selector (RectInt locator, TpZoneLayout layout, Dictionary< string, Tilemap > monitoredMaps) | ||||
| Obtain TileFab load params given a locator. | |||||
| virtual bool | Initialize (TpZoneManager zm, object? obj=null) | ||||
Initialization.
| |||||
| virtual bool | Release () | ||||
Release any assets used by the selector such as caches.
| |||||
| virtual void | OnEnable () | ||||
| OnEnable handler: add a GUID if not present. Typically this occurs when the SO is created from Unity's Create Asset menu. | |||||
| virtual List< TemplateSelectorQueryResults< T > > | GetTilePlusTilesOfType< T > (Func< T, string, bool >? filter=null, int size=16, object? options=null) | ||||
| Query the TileFab for TPT tiles of a certrain type. | |||||
| virtual BoundsInt | SelectorTotalSize (TpZoneLayout layout) | ||||
| Get the largest bounds from all Fabs used by a selector. | |||||
| void | AddGuid () | ||||
| Add/Change GUID for this asset. | |||||
Public Attributes | |
| FabOrBundleLoadFlags | m_LoadFlags = FabOrBundleLoadFlags.NormalWithFilter |
| Load flags to use. | |
Properties | |
| virtual ? List< TpTileFab > | UsedTileFabs [get] |
| A list of the TileFabs used by this selector. If not appropriate, return null. | |
| int | ChunkSize [get, set] |
| The chunk size used by this selector. | |
| Guid | SelectorGuid [get] |
| A GUID for this selector. | |
| string | AssetGuidString [get] |
| GUID as string. | |
| Properties inherited from TilePlus.IChunkSelector | |
| FabOrBundleLoadFlags | LoadFlags [get] |
| Default load flags. Override in derived class. | |
Not for use, just a concrete base class.
| void TilePlus.TpChunkSelectorBase.AddGuid | ( | ) |
Add/Change GUID for this asset.
|
virtual |
Query the TileFab for TPT tiles of a certrain type.
| options | Optional object for custom use. |
| filter | optional filter |
| size | default size of returned list. |
| T | Type |
Reimplemented in TilePlus.TpChunkZoneSelector.
| T | : | TilePlusBase |
|
virtual |
Initialization.
| zm | The Zone Manager this Selector is using |
| obj | Arbitrary data |
true if XXXX, false otherwise.Implements TilePlus.IChunkSelector.
Reimplemented in TilePlus.TpChunkZoneSelector, and TilePlus.TpSingleFabChunkSelector.
|
virtual |
OnEnable handler: add a GUID if not present. Typically this occurs when the SO is created from Unity's Create Asset menu.
|
virtual |
Release any assets used by the selector such as caches.
Implements TilePlus.IChunkSelector.
Reimplemented in TilePlus.TpChunkZoneSelector, and TilePlus.TpSingleFabChunkSelector.
|
virtual |
Obtain TileFab load params given a locator.
| locator | The Locator. |
| layout | The Zone Layout instance. |
| monitoredMaps | Tilemaps used by the ZoneManager. |
Implements TilePlus.IChunkSelector.
Reimplemented in TilePlus.TpChunkZoneSelector, and TilePlus.TpSingleFabChunkSelector.
|
virtual |
Get the largest bounds from all Fabs used by a selector.
Implements TilePlus.IChunkSelector.
Reimplemented in TilePlus.TpChunkZoneSelector, and TilePlus.TpSingleFabChunkSelector.
| FabOrBundleLoadFlags TilePlus.TpChunkSelectorBase.m_LoadFlags = FabOrBundleLoadFlags.NormalWithFilter |
Load flags to use.
|
get |
GUID as string.
|
getset |
The chunk size used by this selector.
Implements TilePlus.IChunkSelector.
|
get |
A GUID for this selector.
Implements TilePlus.IChunkSelector.
|
get |
A list of the TileFabs used by this selector. If not appropriate, return null.
Implements TilePlus.IChunkSelector.