- Home /
Question by
GamesDeveloper12 · Jun 11, 2015 at 08:57 PM ·
gameobjectinstantiateprefabdeleted
Instantiated Object being auto-deleted
When i instantiate my prefab, it seems to be automatically being deleted. In the inspector it says "deleted gameobject" and then quickly disappears.
The following is what i am currently using to instantiate the prefab:
GameObject b = Instantiate(bulletTest, _bulletPoint.transform.position, transform.rotation) as GameObject;
Comment
There's nothing wrong with that one line of code that I can see. Does the bullet have any code to delete itself that may be failing?
You really ought to include more detail if you want good answers.
i have fixed the problem, thanks. It was an issue with the script attached to the gameobject
Your answer
Follow this Question
Related Questions
Spawn Prefabs 1 Answer
How to instantiate a prefab with a script attached? 2 Answers
I cant delete multiple instantiated prefabs 0 Answers
Instantiating to gameobject.transform.position 1 Answer
Retrieving GameObjects from a Prefab 1 Answer