Skip to main content

GameSceneVisuals

A class in Root.Township, the global namespace.

Turns a scene's terrain and a list of objects on or off together.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private GameObject[] gameObjectsObjects switched with the visuals.
private Terrain terrainTerrain switched with the visuals.

Methods​

MemberWhat it is
void SetVisualsActive(bool isActive)Enables or disables the terrain and sets each object active or inactive.