How are duplicate prefab inspector variables loaded?

I really don’t know how to put this in words, but let’s say I have a script with an array of GameObjects (Prefabs) as an inspector variable:


My assumption is that Unity would just load the Circle prefab ONCE from disk and then copy it to each respective GameObject in the array. Is that correct?

Yes, each element in the array is a reference to the Prefab Assets here, so duplicated entries will point to the same Asset and those are loaded once when needed.

1 Like