Unity completely crashes when trying to access singleton methods or properties
janvacek opened this issue · 2 comments
janvacek commented
Hi,
whenever I enter play mode and any of my script is trying to call something from singletons, whole unity crashes without any error log.
Is there any limitations which I would need to know before using these singletons scripts?
janvacek commented
it was because of recursion - https://github.com/UnityCommunity/UnitySingleton/blob/main/Assets/Scripts/Runtime/Singleton.cs#L47