Uninomicon

Documenting the dark corners of the Unity Engine.

User Tools

Site Tools


prefabs

This is an old revision of the document!


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 [GlobalObjectId]s though.
1)
It's untested whether this is because:
  1. The reference *is* the same. Unpacking doesn't actually create new Objects, rather it just re-uses the existing ones.
  2. Unity creates a set of new Objects for the unpacked prefab, and then fixes up all old reference pointers.
prefabs.1612768813.txt.gz · Last modified: 2021/02/08 07:20 by uninomiconadmin