I’m working on a collaborative project across the internet via Dropbox, and we seem to have run into some sort of sync issue. I changed the name of one of our asset folders through Unity, and everything was working perfectly. Then another member of the team synced with my build, and all the assets in that folder no longer appear in the scenes. The scene data is all still there; all the assets appear in the hierarchy with all their transform values fully intact. The assets are still there - I tried renaming the folder the original name, and also cloning the folder and using both the old and new names, but nothing from that folder shows up in the scene itself. Dropbox automatically backs everything up, but it doesn’t help in this case for whatever reason. Nothing else was changed other than a few new assets being added since the last time it was synced. Dropbox is supposed to update with the latest changes, and nobody was working offline, so if it was working for me, it should have worked for everyone once they synced. Any ideas would be greatly appreciated!
Well instead of looking at this obscure problem, maybe someone has an idea on this possible solution:
Is it possible to replace all instances of an asset with a different asset? Renaming won’t work because of the problem itself; it needs to literally be a swap between two different assets, or even just a quick way to copy the move/scale/rotate stats from one object to another.
There’s the CopyTransform Script on the wiki - “Copies the local transform of the selected game instance in the scene and then pastes it into another one you select.”
http://unifycommunity.com/wiki/index.php?title=CopyTransform
Would that help?
It’s halfway there, but I suppose there isn’t going to be a full solution, simply due to the obscurity of the problem. What I’d really like to do is copy the transforms of all of a certain asset, and paste it on the same number of a different asset in those locations (we’ve got hundreds of plants scattered around the scenes). When it comes down to it, this will be a great help. I can use this in some places, and redo other parts. I didn’t even consider that there might be scripts specifically for use during production, rather than for the final product. Thanks!