Skip to content

Maligan/unity-guid

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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

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