Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Unity-Technologies/guid-based-reference
A component for giving Game Objects a GUID and a class to create references to objects in any Scene by GUID
https://github.com/Unity-Technologies/guid-based-reference
Last synced: 3 months ago
JSON representation
A component for giving Game Objects a GUID and a class to create references to objects in any Scene by GUID
- Host: GitHub
- URL: https://github.com/Unity-Technologies/guid-based-reference
- Owner: Unity-Technologies
- License: other
- Created: 2018-04-20T17:40:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-07-02T10:19:09.000Z (over 2 years ago)
- Last Synced: 2024-07-13T22:48:22.494Z (4 months ago)
- Language: C#
- Size: 38.1 KB
- Stars: 614
- Watchers: 39
- Forks: 69
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-unity-open-source-on-github - guid-based-reference - Giving Game Objects a GUID and a class to create references to objects in any Scene by GUID (Inspector)
README
Guid Based Reference
License - Please see LICENSE.md in this repository
Summary
A component to give a Globaly Unique IDentifier (GUID) to a Game Object.
This GUID can then be used to reference an object even if it is another Scene, not loaded yet, or otherwise not easy to directly reference.Maintainers
William Armstrong [email protected]To Use:
Add a GuidComponent to any object you want to be able to reference.
In any code that needs to be able to reference objects by GUID, add a GuidReference field.
GuidReference.gameObject will then return the GameObject if it is loaded, otherwise null.
Look in the CrossSceneReference/SampleContent folder for example usage.
Load up the LoadFirst scene, and then use the SceneLoader object to load 'LoadSecond'
You should see the CrossSceneReferencer object find the CrossSceneTarget object, and set both of them to start spinning.