- Home /
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). Any general reason that this might be happening before I share code? Just in case it helps, my game is in 2D.
Thanks in advance :)
Answer by ElmisteriosoYtz · May 09, 2021 at 03:00 AM
It happened to me so well, the only thing I changed was the code that instantiated the Prefab, only I would need to see your code to know if it is the code or the Unity Editor
Hi @ElmisteriosoYtz , would you $$anonymous$$d saying what kind of changes you made to the instantiating code? Thanks
Answer by FrozenTrident · May 09, 2021 at 04:19 AM
The prefabs act differently if they are not static to make the prefab static simply click on the prefab and at the top of the inspector it should have a checkmark for static.
Hi @FrozenTrident, I tried making them static but it still didn't seem to change its behavior. Thanks for responding
Your answer
![](https://koobas.hobune.stream/wayback/20220613033506im_/https://answers.unity.com/themes/thub/images/avi.jpg)