Skip to main content

interface IMeshBuilder

(Niantic.Lightship.Maps.Builders.IMeshBuilder)

Overview

The base type for maptile feature builders that generate meshes.

    interface IMeshBuilder: Niantic.Lightship.Maps.Builders.IFeatureBuilder {
// methods

MeshFilter CreateMeshComponents(IMapTileObject mapTileObject);
void Release(MeshFilter meshFilter);
};

// direct descendants

class MeshBuilderBase;
interface IMeshBuilderAsync;
interface IMeshBuilderStandard;

Inherited Members

public:
// properties

Guid Id;
int MinLOD;
int MaxLOD;

Detailed Documentation

The base type for maptile feature builders that generate meshes.

Methods

CreateMeshComponents

MeshFilter CreateMeshComponents(IMapTileObject mapTileObject)

Creates MeshRenderer and MeshFilter components on a new GameObject that are used to render generated meshes.

    Parameters:

    mapTileObject - The IMapTileObject that the new mesh rendering components will be attached to.

    Returns:

    The MeshFilter component

Release

void Release(MeshFilter meshFilter)

Called when a maptile is removed from the scene. This method cleans up meshes or other resources created when the maptile is built by this builder.

    Parameters:

    meshFilter - The MeshFilter created by the call to CreateMeshComponents