Hello Community!
I’ve done tiny library for GUID-based cross-scene references.
For those who never meet such a solution:
It allows to add component with unique id to GameObjects and when at runtime find those objects by their ids regardless the objects scene.
Despite Unity Technologies already has such a tool in their repository it looks a little bit abandoned.
So I decided to implement another one focusing on friendly UX and unity-like UI.
The main advantage of my implementations:
-
Robust GUID generation which respect object duplication (Ctrl+D) and totally ignore component Reset and prefab Revert.
So with this tool it’s much more hard to lose generated GUIDs. -
PropertyDrawer for GUIDReference made as close to ObjectField as possible.
It supports object ping in hierarchy (or container scene if object isn’t loaded) -
There are extra context menu which allows additively load/unload scenes with target object.
So it’s nothing special but hight integrated package.
And I’m glad to share it with you and appreciate any suggestion / bugreports.
Repository
https://github.com/maligan/unity-guid
Screen
