Object spawner not working right

Object spawner not working right - Information Sign on Paper

I am trying to get a skull to respawn when the game starts. For simplicity I just hooked the object spawner up to a button for now. When I click the button the object disappears and reappears a long distance from the object spawner. The tags are the same, it is wired correctly. This is the 3rd object spawner in this room, the others work fine. I took a video to show exactly what I mean. Any help would be appreciated.

Video on YouTube:



Best Answer

This is likely due to the pivot of your object being way off from the skull. The object spawner always respawns an object such that the pivot is in the middle of the spawner. If you respawn that skull, then go into edit mode on the skull, you should see the origin right in the middle of the object spawner. To fix this, you have a few options:

  1. You can select all of the shapes on the skull in edit mode. A contextual menu will pop up with one option that allows you to "center pivot". This will move the pivot of the object into the middle of all the shapes you have selected.
  2. You can select all the shapes in edit mode and move them to the pivot.



Pictures about "Object spawner not working right"

Object spawner not working right - From above of composition made of letters with inscription Gender is a spectrum placed on pink background in studio
Object spawner not working right - Woman in White Crew Neck T-shirt Holding Red and White Plastic Toy
Object spawner not working right - From above composition of contrast blackboard in wooden frame with white USE YOUR PRIVILEGE TO OPT IN title on black background






Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Lukas, Laker, cottonbro, Brett Sayles