Objects in wrong places when in game

I set up my scene with some objects duplicated and placed where I want them, but when I go into the levels some of those objects are in different places.

For example you can see this gate is in the wrong place. When in game it’s in the position where it started when I first loaded the FBX.

So no thoughts on this? It’s pretty bothersome when it looks great in the editor, then I hit the play button and the objects are all moved around.

Are there animations on the objects that move to an undesired location?

Nope nothing is animated. I don’t even know how to do that in Unity yet.

Like I said the objects in-game seem to be in their original locations when I first loaded the FBX. Not all of them though, just some. It’s like it’s not recognizing the fact that I moved them when it does the build for the game play. Also anythign that I’ve duplicated, the duplicate is in the correct place when in-game.

Weird.

I’d uncheck the animation option on the import settings in Unity anyway on the problem objects just in case it helps.

Have you tried making the objects into Prefabs instead of just duplicating them and using those instead?

I have not tried anything with prefabs, but this happens even with objects that I’m not duplicating so I’m not sure that would have anything to do with it. In fact like I said above, the duplicates work fine, it’s the originals that get messed up.

OK so I tried something. I made a cube around my environment so that I know where it’s located (like a bounding box), then deleted it completely and anything that had anything to do with it. Then I reloaded the FBX that contained the environment and it’s parts, and got it positioned right. Then moved a couple of objects slightly and started the game. Nope they popped right back to their original positions as soon as the game started.

Am I supposed to have each object in it’s own FBX file or something? That would be a real pain in the rear, right now I have the main environment, plus all of the objects for that environment (pipes, hand rails etc) are children of that environment, all in the same FBX file.

Ha! Solved it. The objects getting messed up were parented to the main environment object in the Hierarchy. Once I unparented them everything worked perfectly. This seems like a bug to me.

I’ve had trouble with objects that were children of a different object too (specifically with rotation, they would stretch way out when rotating), but unchilding them always solves it.