Skip to content

Unity GUID Component & Reference

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

Maligan/unity-guid

Repository files navigation

GUID Component & Reference openupm

Unity GUID based cross-scene reference component with robust GUID generation and quality UX.

Please note, Unity-Technologies has its own implementation:

How To

1. Add GUIDComponent to GameObject
2. Add GUIDReference field to your script
[SerializeField]
private GUIDReference m_Reference;
3. Resolve at runtime
// Resolve via GUIDReference
var component = m_Reference.GetComponent<GUIDComponent>();

// Resolve via GUIDComponent
var component = GUIDComponent.Find("OBJECT-GUID-HERE");

Features

  • Safe - GUIDComponent ignores component resets and prefab reverts. You will never lose your generated GUIDs. The only way to erase existing GUID is manually component removing.

  • Easy - GUIDs are generated automatically and respect object duplication.

  • Handy - Open/Close referenced scenes from property context menu or with double-click.

  • Neat - GUIDReference property drawer looks like general object field.

Installation

# 1. Via OpenUPM
openupm add com.maligan.guid

# 2. Via PackageManger & GitHub URL
https://github.com/maligan/unity-guid.git

# 3. Via copy this repository content into Packages/ folder

Gallery

About

Unity GUID Component & Reference

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.meta

Stars

Watchers

Forks

Packages

No packages published

Languages