prefabs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
prefabs [2021/02/08 07:20] – uninomiconadmin | prefabs [2025/01/15 04:35] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
Stray Notes: | 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. (( | + | * 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. |
It's untested whether this is because: | It's untested whether this is because: | ||
- | |||
- | |||
- | |||
- The reference *is* the same. Unpacking doesn' | - The reference *is* the same. Unpacking doesn' | ||
- Unity creates a set of new Objects for the unpacked prefab, and then fixes up all old reference pointers. | - Unity creates a set of new Objects for the unpacked prefab, and then fixes up all old reference pointers. | ||
- | )) The new unpacked objects will have new [[GlobalObjectId]]s | + | )) 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. | ||
prefabs.1612768824.txt.gz · Last modified: 2025/01/15 04:35 (external edit)