Esempio n. 1
0
 private void OnEnable()
 {
     if (_treeManager != null)
     {
         _treeManager.AddTerrain(terrain);
     }
 }
Esempio n. 2
0
 /// <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);
 }