Process Terrain and Water in Editor?
I would like to write a script which runs in the editor, not the game, which generates an asset to be used on runtime based on the height of terrain at various points and whether there is water above the terrain.
I know that I can use this as my hook for when to run my script: http://docs.unity3d.com/ScriptReference/AssetModificationProcessor.OnWillSaveAssets.html
But how do I actually go into my scene, find all the terrain objects, and get the heights at various points?
Your answer
Follow this Question
Related Questions
How to get mouse click world position in the scene view in editor script? 3 Answers
Custom Object2Terrain script creates "curtains" on the edges. 0 Answers
Auto grass placement not working properly 1 Answer
Can't put an asset on my terrain 0 Answers
How do I make the Terrain Textures display properly? 0 Answers