Skip to main content

class FeatureBuilderBase

(Niantic.Lightship.Maps.Builders.FeatureBuilderBase)

Overview

class FeatureBuilderBase:
MonoBehaviour,
Niantic.Lightship.Maps.Builders.IFeatureBuilder {
public:
// fields

int MinLOD => _minLOD;
int MaxLOD => _maxLOD;

// properties

Guid Id;

// methods

virtual void Initialize(ILightshipMapView lightshipMapView);

protected:
// fields

string BuilderName => _builderName.NullIfEmptyOrWhitespace() ?? name;
LayerKind Layer => _mapLayer;
List<FeatureKind> Features => _features;

// properties

Vector3 ZOffset;
};

// direct descendants

class MeshBuilderBase;
class ObjectBuilderBase;

Inherited Members

public:
// properties

Guid Id;
int MinLOD;
int MaxLOD;

Detailed Documentation

Fields

BuilderName

string BuilderName => _builderName.NullIfEmptyOrWhitespace() ?? name

Gets the builder's serialized name, if set, otherwise the returned string is the name of the builder's asset file.

Properties

ZOffset

Vector3 ZOffset

An offset that can be used to avoid z-fighting

Methods

Initialize

virtual void Initialize(ILightshipMapView lightshipMapView)

Builders may optionally implement this method if they need to perform any initialization or might need access to their parent ILightshipMapView instance later on.

    Parameters:

    lightshipMapView - The map to which this builder belongs