Object dont move to the new position on game mode
I'm having a problem with an object in my scene. I have made the object and made a script for it. When i change the place of the object in the scene mode and then i go to the gamemode the object is not in the new position. The object is the flying hamburger. Why this is happening?
You mentioned a script in your question. Could you post it?
pragma strict
var ParticlePickUp_fx : Transform;
function OnTriggerEnter (info : Collider) { if (info.name == "Cake"); { Debug.Log("Cake picked up"); var effect = Instantiate(ParticlePickUp_fx, transform.position, transform.rotation) ; Destroy(effect.gameObject, 3); Destroy (gameObject) ;
} }
That is the script that im using in my cake/hamburger object.
$$anonymous$$ay be your script is accessing that gameobject . when you change position it comes back to original place.. Please add script.