Object placed in scene view appears in a different area in game

Hi everyone,

I am brand new to Unity and to game development in general, but I am having a blast.
While I was working through a tutorial I got a strange occurrence with my objects.

So, I have a cylinder with a texture material attached that I use for animation for a “teleportation pad” and then I have a cylinder within that cylinder (unmeshed) to act as a trigger for the script code that I am using to “teleport” my FPScontroller to the designated location.

now in scene view the cylinders are placed in between some other objects in a designated spot. My issue comes in when I enter the game tab (pressing play). The objects where the cylindrical animation and trigger are supposed to be situated in are in the right spot, but the trigger cylindrical object as well as the trigger inside it appears somewhere off into the woods behind my little huts.

I can still run to that spot and jump into the object and the script triggers successfully moving my FPScontroller to the right spot, but the objects are in the wrong place.

Obviously there should be a reason why it does this, but I am at a complete loss, could anyone of you maybe assist me with regards to the above?

Your help is highly appreciated.

I’m just going to answer my own question here. I figured out the problem whilst going through my game.

The issue in this instance was with the animation of the one cylinder.
I made the unmeshed trigger cylinder a child within the animation cylinder, so it acts as one object when I was doing the animation.

Somewhere along the line I made a mistake in my recording of the animation and set the coordinates of the parent animation cylinder to the “woods behind my little huts” where in the next frame increment I only started with the up-and-down motion of the animation effect.

So while the initial location was correct in my scene view (where I placed it), as soon as I launched the game the animation then starts (autoPlay) moving the parent object (animation + trigger) to the “wrong” location in perfect working condition.

Lesson learned, keep your head on straight while doing animations :stuck_out_tongue:
I hope that this Q&A might help someone in the future as well.

Cheers.