private void OnEnable() { if (_treeManager != null) { _treeManager.AddTerrain(terrain); } }
/// <summary> /// Use this method to add new terrains to Tree Manager at runtime /// </summary> /// <param name="manager">The GPUI Tree Manager to add the new terrain</param> /// <param name="terrain">New terrain to render the trees</param> public static void AddTerrainToManager(GPUInstancerTreeManager manager, Terrain terrain) { manager.AddTerrain(terrain); }