Question by
clonetrooper2021 · May 29, 2021 at 12:51 AM ·
instantiateinstantiate prefab
Instantiated prefabs acting different than those dragged onto scene
I have some prefabs that, when instantiated, act differently than ones that I just place into the scene manually (which perform exactly as intended). Some people have said that it might have something to do with the code that instantiated the objects, so I've included some pictures. Just in case it helps, my game is in 2D.
Thanks in advance :)
First pic:
Second pic:
instantiate-code-pic-1.png
(56.3 kB)
instantiate-code-pic-2.png
(53.2 kB)
Comment
Your answer
Follow this Question
Related Questions
Really quick question about Stacks & Instantiate 2 Answers
Assign variables on Instantiation? 0 Answers
Instantiated object not in right position 1 Answer
Im having an issue when Instantiate Prefab with specific rotation 2 Answers
Change value of a static variable multiple times in one script 2 Answers