As you know, Terrain component doesn’t allow multi edit on inspector.
So, I’m editing them by a simple script temporarily. Because I have to handle 200+ terrains.
I wonder that is there any way to edit all terrains at once except script.
using UnityEngine;
using UnityEditor;
public class MultiTerrainEdit
{
[MenuItem("Tool/Multi terrain edit")]
private static void SetDrawInstanced()
{
UnityEngine.Terrain[] terrains = Selection.activeGameObject.GetComponentsInChildren<UnityEngine.Terrain>();
foreach (var terrain in terrains)
{
terrain.drawInstanced = true;
}
Debug.Log($"Done. {terrains.length} items.");
}
}
Thanks.