Posted November 17, 2021 by Almost Fantastic
#Unity3D #Plugin #Dependency #Unity
This will help you by automatically setting references to other global objects like the camera or a specific script you need a reference to.
It's possible to use both private and public fields. Here's an example using SerializeField
[SerializeField, FromScene] private SceneDependency1 _sceneDependency1; [SerializeField, FromScene] private SceneDependency2 _sceneDependency2; [SerializeField, FromPrefab] private PrefabDependency _prefabDependency;
We've done our best to describe it on the github page and with the example project.
We have used this in some form or another in our recent projects. The best part is that we can spare some scene commits to avoid merging them..
Here's the Github: https://github.com/NilsFantastic/DependencyFinderExampleProject/
We're sharing this in hope it will be a help you too bu we'll also gladly hear feedback about the github page and about the project itself.
Don't be a stranger! :)