skip to content
Uninomicon
Documenting the dark corners of the Unity Engine.
User Tools
Register
Log In
Site Tools
Search
Tools
Edit this page
Start a Discussion
Old revisions
Fold/unfold all
Backlinks
Recent Changes
Media Manager
Sitemap
Register
Log In
>
Recent Changes
Media Manager
Sitemap
Trace:
•
Prefabs
prefabs
Prefabs
Stray Notes:
In the
Editor
, if you have a reference to a Component or GameObject inside a PrefabInstance GameObject, and you unpack the Prefab completely, your old reference will still be valid.
1)
The new unpacked objects will have new GlobalObjectIds though.
In the Editor, prefabs have two
GlobalObjectId
s.
Referencing a gameobject to itself inside of a prefab will result in that reference being to the prefab, not the instance of the prefab.
1)
It's untested whether this is because:
The reference *is* the same. Unpacking doesn't actually create new Objects, rather it just re-uses the existing ones.
Unity creates a set of new Objects for the unpacked prefab, and then fixes up all old reference pointers.
prefabs.txt
· Last modified: 2021/05/14 11:14 by
83.83.63.132
Page Tools
Edit this page
Start a Discussion
Old revisions
Backlinks
Fold/unfold all
Back to top