1
Support / Re: Tilemap duplicating prefab
« on: May 04, 2015, 12:00:38 am »
"It doesn't duplicate them, it just recreates the ones in that chunk that it considered dirty and you end up with duplicates."
I didn't mean duplicate in the literal get object then copy that object sense, just in the sense the prefab is there and then another is made.
What makes it consider a prefab is dirty? You said the system doesn't keep track of prefabs so how would it know if one were dirty?
I was under the impression that a chunk was dirty if a tile in a chunk changed, so then on the next build all dirty chunks, AKA all chunks where a tile changed, are rebuilt. I don't get how a prefab can be dirty.
And I will try and get a case for you because it does happen randomly(ostensibly). I can have a 10 by 10 chunk with 1 tile that has a prefab tied to it and the other 99 tiles are just plain tiles. I can randomly set any of the 99 plain tiles to another plain tile and never mess with the 1 tile mapped to the prefab and randomly their will be another prefab.
I didn't mean duplicate in the literal get object then copy that object sense, just in the sense the prefab is there and then another is made.
What makes it consider a prefab is dirty? You said the system doesn't keep track of prefabs so how would it know if one were dirty?
I was under the impression that a chunk was dirty if a tile in a chunk changed, so then on the next build all dirty chunks, AKA all chunks where a tile changed, are rebuilt. I don't get how a prefab can be dirty.
And I will try and get a case for you because it does happen randomly(ostensibly). I can have a 10 by 10 chunk with 1 tile that has a prefab tied to it and the other 99 tiles are just plain tiles. I can randomly set any of the 99 plain tiles to another plain tile and never mess with the 1 tile mapped to the prefab and randomly their will be another prefab.