Fixing the Jump-to-Origin Issue in Unity Game Mode

After you load the model and its animations to Unity, you may use the reference method to have the model perform the animations in the Game Mode.

However, when the model is boneless, which means the animations are created via transformation, and you move, rotate or even scale the model to elsewhere in the unity scene, you may encounter an issue that the model jumps back to the origin (0,0,0) of the scene with the original size and angle when it is exported.

Jump-to-Origin Issue

  1. Load a model and its animations to Unity.
  2. Drag and drop the model to the Hierarchy tab. The model will be automatically positioned to the origin (0, 0, 0) of the scene.
  3. Make sure the model is selected and in the Inspector tab, then click the little circle of the Animation.
  4. Select the animation of the model.
  5. Transform the model by adjusting its position, angle and size according to your needs.
  6. Click the Play button to start the Game Mode.
  7. The model jumps back to the origin and turns to its original size and angle in the Game Mode.

The Solution

  1. Make sure the model added in the previous section is removed from the Hierarchy tab.
  2. Execute the GameObject >> Create Empty command.

    An empty object will be added into the Hierarchy tab.
  3. Drag and drop the model from the Project tab onto this empty object.

    Drag and drop the model onto the empty object.

    The model is set to be the sub-node of the object.

  4. Make sure the model is selected and in the Inspector tab, then click the little circle of the Animation.
  5. Select the animation of the model.
  6. Select the GameObject and then transform it by adjusting its location, angle and size.
  7. Click the Play button to start the Game Mode. The model starts its animation with the adjusted appearance, and will stay where it is.