View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.01
- Last updated
- First released
- Unity version
- 2022.3.37 or later
- Package size
- 180 KB
- Files
- 15
- Favorites
- 8
- Views in the past week
- 6
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- $11.99 on
Keywords
Safe Cross-Scene References – Like Drag & Drop, But Between Scenes!
- Price drop
Reference objects across Unity scenes with zero runtime hacks. Works with Play Mode, type-safe, and no singletons or scene managers needed.
Lowest recorded price
Get 20% off on Asset Store (opens in new tab)Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 2
Safe Cross-Scene References – Like Drag & Drop, But Between Scenes! screenshot 1
About this asset
Overview
The Cross-Scene Reference Package provides a convenient way to reference Unity objects across multiple scenes. By using a generic component-based system, it allows developers to create cross-scene references for any Component, such as Transform, Rigidbody, or Collider.
Features
- 🎯 Seamless Cross-Scene Object References: Reference objects between scenes directly.
- 🔄 Persistent Data Management: Handles references between loaded scenes without issues.
- 🧩 Simple API: Easy-to-use methods to get/set references.
- ⚙️ Generic Cross-Scene Object References: Use a generic approach to reference any Component type across scenes (e.g., Transform, Rigidbody).
- 🗃️ Serialization Support: Automatically handles the serialization of references across scenes.
- 🛡️ Type Safety: Ensures references are strongly typed at compile time.
Key Components
- CrossSceneReference<T>: A generic class used to reference components of type T (e.g., Transform, Rigidbody) across scenes.
- CrossSceneReferenceId: A monobehaviour script that uses a global unique guid to identify the object which is a combination of m_LocalIdentfierInFile and the scene path.
Best Practices
- ✅ Use Type Safety: Always specify the correct component type when using CrossSceneReference<T> to avoid runtime errors.
- 🔁 Avoid Circular Dependencies: Ensure that objects referencing each other are not in a loop.
- 📂 Scene Loading Order: Manage scene loading carefully to ensure references are available when needed.
FAQ
- A: No, CrossSceneReference<T> is constrained to Component types only.Q: Can I reference non-Component types?
- A: The system will return null. Handle this scenario to avoid null reference exceptions.Q: What happens if the referenced object isn't loaded?
- A: No, only active and loaded scenes can be referenced.Q: Can I reference objects from unloaded scenes?
Support
For additional support, visit our support page or contact us via email. [email protected]
From the publisher's Asset Store listing.
Technical details
Key Components
- CrossSceneReference<T>: A generic class used to reference components of type T (e.g., Transform, Rigidbody) across scenes.
- CrossSceneReferenceId: A monobehaviour script that uses a global unique guid to identify the object which is a combination of m_LocalIdentfierInFile and the scene path.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2022.3.37f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.