QOL for InstanceFinder registerable instances #254
Closed
celojevic
started this conversation in
Feature Request
Replies: 3 comments
-
I can do that and add optional for warning(probably). Don't forget there is also this ... |
Beta Was this translation helpful? Give feedback.
0 replies
-
Apparently there is a warn option ... but I may have added it in after this conversion. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Added in 3.5.3 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
InstanceFinder.RegisterInstance is a great and easy replacement for singletons but it is missing some QOL. One thing its missing so far is that you cant check if the instance already exists with like
InstanceFinder.HasInstance<Type>.
You can doInstanceFinder.GetInstance<Type>() != null
but there is no option to turn the warning off if the instance is not foundBeta Was this translation helpful? Give feedback.
All reactions