mattvr / syrinj Goto Github PK
View Code? Open in Web Editor NEWSimpler dependency injection for Unity3D
License: MIT License
Simpler dependency injection for Unity3D
License: MIT License
After upgrading to Unity 5.4.0f3 Personal, the following warning is displayed with Syrinj usage:
OnLevelWasLoaded was found on SceneInjector
This message has been deprecated and will be removed in a later version of Unity.
Add a delegate to SceneManager.sceneLoaded instead to get notifications after scene loading has completed
Providers would occasionally fail to inject and "provide" in the Unity editor when testing my game. The console would be filled with errors such as:
[PlayerTouchRegion (PlayerDrag)] Could not find provider for player
UnityEngine.Debug:LogError(Object)
Syrinj.DependencyContainer:TryInjectProvidable(Injectable) (at Assets/Syrinj/Scripts/DependencyContainer.cs:113)
Syrinj.DependencyContainer:TryInjectAll() (at Assets/Syrinj/Scripts/DependencyContainer.cs:92)
Syrinj.DependencyContainer:Inject(IList`1) (at Assets/Syrinj/Scripts/DependencyContainer.cs:64)
Syrinj.GameObjectInjector:Inject() (at Assets/Syrinj/Scripts/GameObjectInjector.cs:35)
Syrinj.SceneInjector:InjectBehaviours(MonoBehaviour[]) (at Assets/Syrinj/Scripts/SceneInjector.cs:41)
Syrinj.SceneInjector:InjectScene() (at Assets/Syrinj/Scripts/SceneInjector.cs:29)
Syrinj.SceneInjector:Awake() (at Assets/Syrinj/Scripts/SceneInjector.cs:17)
This can be resolved if I remove and add the Injector Component
to any provider GOs.
Although there may be other cases that cause this issue, I've noticed this Unity editor Injector issue will reliably occur following an Android build.
It is a minor thing, but the provided Test Tools were deprecated by Unity and don't work in the newer Versions of Unity. I think Testing is now built directly into Unity.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.