UnitySingleton
UnitySingleton copied to clipboard
Unity completely crashes when trying to access singleton methods or properties
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?
it was because of recursion - https://github.com/UnityCommunity/UnitySingleton/blob/main/Assets/Scripts/Runtime/Singleton.cs#L47