Skip to main content

LandmarkCandidateFinder

A class in Root.Township, Alta.Utilities.

Editor tool: finds large static objects in overworld chunks that could be world landmarks, and adds WorldLandmarkMarker to them.

Constructors​

MemberWhat it is
LandmarkCandidateFinder()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

6 private and internal fields
MemberWhat it is
private List<GameObject> candidatesThe objects found by the last search.
private bool isAddingInspector button that runs AddMarkers.
private bool isApplyAllInspector button that runs ApplyAll.
private bool isFindingInspector button that runs FindLandmarkCandidates.
private static Logger loggerClass logger.
private float minVolumeSmallest bounds volume an object needs to be a candidate (default 100).

Methods​

3 private and internal methods
MemberWhat it is
private void AddMarkers()Adds a WorldLandmarkMarker to every candidate.
private void ApplyAll()Inspector action. Empty in this build.
private void FindLandmarkCandidates()Lists static direct children of every OverworldChunk with a bounds volume of at least minVolume, largest first.