Skip to content
A component for giving Game Objects a GUID and a class to create references to objects in any Scene by GUID
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Assets Multi-Edit issue Sep 27, 2018
.gitignore Remove Build Folder Jul 19, 2018
CONTRIBUTIONS.md Initial Commit Apr 20, 2018
LICENSE.md Initial Commit Apr 20, 2018
README.md Reference our License in the readme Jun 14, 2018

README.md

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 williama@unity3d.com

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.

You can’t perform that action at this time.