How to get direct access to a terrain's vertices?

I have been trying to find a good method to get access to a terrain’s vertices, but have yet to find anything that gives me this ability. Still reading the documentation, but if anyone knows what path I have to use to get there I would appreciate it. I am not looking for heightmap data I am looking for the actual mesh data that has to be somewhere… right?

1 Answer

1

The terrain meshes are not accessible, and aren’t meant to be, since there is no fixed number of them and they change at any time due to LOD. You can probably just use SampleHeight.

Legal and technical are two different things. Technically, scripts are compiled with your app. You app uses a unique bundle identifier with Google and/or Apple. So, things like score (using the Game Center for example) are tight to your app id, not to the scripts. The apps execute within a closed environment, they don't communicate with each other. Now, copyright wise, if you use a script you didn't write yourself, make sure the license allows you to use it in a commercial project. Most scripts made available are usually under creative common licence.