interface IMeshBuilderAsync
(Niantic.Lightship.Maps.Builders.Performance.IMeshBuilderAsync)
Overview
Represents a maptile feature builder which builds feature Meshes asynchronously.
interface IMeshBuilderAsync: Niantic.Lightship.Maps.Builders.IMeshBuilder {
// methods
bool PreBuild(
IReadOnlyList<MeshTile> tiles,
out IReadOnlyList<MeshTile> tilesToBuild
);
void Build(IReadOnlyList<MeshTile> tiles);
};
// direct descendants
class MeshBuilderAsync;
Inherited Members
public:
// properties
Guid Id;
int MinLOD;
int MaxLOD;
// methods
MeshFilter CreateMeshComponents(IMapTileObject mapTileObject);
void Release(MeshFilter meshFilter);
Detailed Documentation
Represents a maptile feature builder which builds feature Meshes asynchronously.
Methods
PreBuild
bool PreBuild(
IReadOnlyList<MeshTile> tiles,
out IReadOnlyList<MeshTile> tilesToBuild
)
Processes tiles before building
Valid tiles are typically those whose Zoom Level is between MinLOD and MaxLOD.
Parameters:
tiles
- The initial list of tiles to be built
tilesToBuild
- The processed tiles that are currently valid for this builder.
Returns:
Whether or not the build should continue
Build
void Build(IReadOnlyList<MeshTile> tiles)
Called when one or more maptiles are added to the scene. This method generates meshes for a specific set of maptile features.
Parameters:
tiles
- An IReadOnlyList<T> of MeshTiles containing features to build