|
I wrote a short script to change the texture of the tree model during the game runing, but all the trees I drawn with the brush tool can not refresh automatically, I need to click "refresh trees and detail prototypes" under the terrain tab to refresh and see the result, so how can I refresh the data in the script?
(comments are locked)
|
|
There's a specific function to refresh the tree prototypes (and I'm you should also call Flush afterwards).
Also note, because these commands are undocumented, they may be changed or removed entirely in future versions of unity, so bear this in mind - particularly if you're targetting the webplayer.
(comments are locked)
|
|
I think the undocumented method Terrain.Flush() should work for this.
(comments are locked)
|
