Instanciating Object through script doesn't keep the prefab behavior

Hi Guys,

I didn’t know how to explain that in the title, but basically what I’d like to be able to achieve is that when I instanciate a GameObject using Instanciate(), the GameObject that has been created doesn’t have the prefab connection (it doesn’t keep the blue color on its name).

I was wondering if there was a way to do that.
I am instanciating items in the editor (not at runtime) and none of them keep their prefab behavior. So when I change the prefab, they don’t update…

Thanks in advance!

There is a separate editor-only function for that called PrefabUtility.InstantiatePrefab.

1 Like

Damnit!
Thanks a lot :slight_smile: