Reference IDs which are independent of scene [ADDED]
Posted: Tue Jun 26, 2018 6:53 am
Status
Added in 3.3.0.
Complexity
5/10
Description
Currently reference managers generate references on a scene-by-scene basis. This means that references to objects in the Assets folder (for example, Textures) will be different in each scene, so data saved in one scene cannot apply to another.
To maintain references which are invariant of scene, a reference manager dedicated to managing references objects in the Assets folder would be required.
AssetDatabase.GetAssetPath or AssetDatabase.GetAssetOrScenePath would need to be used to ascertain whether an object exists in the Assets folder or in a scene.
Added in 3.3.0.
Complexity
5/10
Description
Currently reference managers generate references on a scene-by-scene basis. This means that references to objects in the Assets folder (for example, Textures) will be different in each scene, so data saved in one scene cannot apply to another.
To maintain references which are invariant of scene, a reference manager dedicated to managing references objects in the Assets folder would be required.
AssetDatabase.GetAssetPath or AssetDatabase.GetAssetOrScenePath would need to be used to ascertain whether an object exists in the Assets folder or in a scene.