Question by
Lemoln · Oct 16, 2017 at 04:07 PM ·
editorinstantiatebug
Instantiate function bugging for some reason
I got some simple shooting script, Instantiating a bullet and a muzzle flash on the barrel game object. But for some reason, after working fine a couple of times, the Instantiate() function breaks, creating bullets and flashes on (0, 0, 0) position, instead of the barrel. A simple restart of the editor (with saving last changes) fixes it and it works okay again, but I cannot just restart my editor every 5 minutes! Anyone met this problem? Please help.
Comment