Class VistaManager
[AddComponentMenu("Vista/Vista Manager")]
[HelpURL("https://docs.google.com/document/d/1zRDVjqaGY2kh4VXFut91oiyVCUex0OV5lTUzzCSwxcY/edit#heading=h.ssforp6xnxtf")]
[ExecuteInEditMode]
public class VistaManager : MonoBehaviour
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourVistaManager
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.useGUILayoutMonoBehaviour.runInEditModeBehaviour.enabledBehaviour.isActiveAndEnabledComponent.GetComponent<T>()Component.TryGetComponent<T>(out T)Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentInParent<T>()Component.GetComponentsInParent<T>()Component.GetComponents<T>()Component.transformComponent.gameObjectComponent.tagObject.GetInstanceID()Object.GetHashCode()Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
Properties
- afterGeneratingUnityCallback
Gets the UnityEvent invoked after a generation pass finishes successfully.
- allInstances
Gets the currently enabled manager instances tracked by the runtime.
- beforeGeneratingUnityCallback
Gets the UnityEvent invoked immediately before a generation pass begins.
- currentlyProcessingTile
Gets the tile currently being processed by the active generation pass.
- detailDensityMapResolution
Gets or sets the resolution assigned to detail density maps before tile population.
- heightMapResolution
Gets or sets the height-map resolution pushed into tiles and biome requests.
- id
Gets the persistent identifier of this manager instance.
- objectToSpawnPerFrame
Gets or sets the object spawn budget forwarded to progressive object populators.
- shouldCullBiomes
Gets or sets whether the manager should skip biome requests for tile-biome pairs that do not overlap.
- terrainMaxHeight
Gets or sets the maximum terrain height assigned to tiles before population begins.
- textureResolution
Gets or sets the texture resolution used for non-height texture outputs.
Methods
- CancelActiveGenerateTask()
Forces the currently tracked generation task, if any, to complete immediately.
- CollectSceneHeight(RenderTexture, Bounds)
Collects scene height from the manager's tiles into a destination render texture.
- CreateInstanceInScene()
Creates a new manager GameObject in the current scene.
- ForceGenerate()
Marks all biomes as stale from the manager's perspective and starts a full generation pass.
- Generate(ITile)
Starts generation for a single tile.
- Generate(IEnumerable<ITile>)
Starts generation for a set of tiles.
- GenerateAll()
Starts generation for every collected tile.
- GenerateAllAndForget()
Starts generation for every collected tile and discards the returned task handle.
- GetBiomes()
Gets the biomes currently owned by or associated with this manager.
- GetTerrainSystem<T>()
Gets the registered terrain-system instance of a specific type, if one exists.
- GetTerrainSystems()
Gets all terrain-system implementations currently registered with Vista.
- GetTileArray()
Gets all tiles contributed to this manager through the tile-collection pipeline as an array.
- GetTiles()
Gets all tiles contributed to this manager through the tile-collection pipeline.
- HasActiveTask()
Returns whether a Vista generation task is currently active.
- RegisterTerrainSystem<T>()
Registers a terrain-system implementation with the global Vista runtime.
- Reset()
Restores the manager to Vista's default runtime settings.
- UnregisterTerrainSystem<T>()
Unregisters a terrain-system implementation from the global Vista runtime.
Events
- afterGenerating
Occurs after all tiles have been populated, seams matched, and biome counters updated.
- albedoMapPopulated
Occurs after a tile albedo map has been populated.
- beforeGenerating
Occurs immediately before biome requests begin for a generation pass.
- collectTiles
Occurs when a manager needs tile providers to register their tiles for generation.
- detailDensityPopulated
Occurs after detail density data has been populated for a tile.
- detailInstancePopulated
Occurs after detail instance data has been populated for a tile.
- genericBuffersPopulated
Occurs after generic buffer outputs have been populated for a tile.
- genericTexturesPopulated
Occurs after generic texture outputs have been populated for a tile.
- heightMapPopulated
Occurs after a tile height map has been populated.
- holeMapPopulated
Occurs after a tile hole map has been populated.
- layerWeightPopulated
Occurs after terrain layer weights have been populated for a tile.
- meshDensityMapPopulated
Occurs after a tile mesh-density map has been populated.
- metallicMapPopulated
Occurs after a tile metallic map has been populated.
- objectPopulated
Occurs after object data has been populated for a tile.
- treePopulated
Occurs after tree data has been populated for a tile.