Skip to content

Commit d99ab73

Browse files
Re-organize to match PackMan layout
We want this to eventually become a PackMan package, so making the layout match now.
1 parent d8cc388 commit d99ab73

21 files changed

+38
-3
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Guid Based Reference
2+
3+
Summary
4+
A component to give a Globaly Unique IDentifier (GUID) to a Game Object.
5+
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.
6+
7+
Maintainers
8+
William Armstrong williama@unity3d.com
9+
10+
To Use:
11+
12+
Add a GuidComponent to any object you want to be able to reference.
13+
14+
In any code that needs to be able to reference objects by GUID, add a GuidReference field.
15+
16+
GuidReference.gameObject will then return the GameObject if it is loaded, otherwise null.
17+
18+
Look in the CrossSceneReference/SampleContent folder for example usage.
19+
20+
Load up the LoadFirst scene, and then use the SceneLoader object to load 'LoadSecond'
21+
22+
You should see the CrossSceneReferencer object find the CrossSceneTarget object, and set both of them to start spinning.
23+

Assets/CrossSceneReference/SampleContent.meta renamed to Assets/CrossSceneReference/Runtime.meta

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/CrossSceneReference/Samples.meta

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)