|
I've got a large set of terrain tiles that I can successfully add to a prefab and use that to build an AssetBundle, but when I call SetNeighbors() on the Terrains it doesn't seem to take effect. Manually adding a script to each terrain object to call SetNeighbors() works, but that's a major pain. Is it possible to store the neighbor associations in an AssetBundle and/or a prefab? My Pro trial is up in five days and I'm still deciding whether to purchase (in other words, I'll give anyone who responds before then an automatic upvote). New to both Unity and C#. Here's what I'm trying, minus the fat: In a loop over tile heightmaps:
Then, when the loop is finished:
Suggestions?
(comments are locked)
|
|
All I hear is crickets, so I'll attempt to provide my own answer. I see no evidence of support for storing terrain neighbor associations in asset bundles or prefabs. The observed practice is to set neighbors as they are loaded at runtime, as in the (warning: large file) Streaming World Demo where terrain tiles are pulled from the asset bundle depending on player position. Case closed?
(comments are locked)
|
