UnitySingleton icon indicating copy to clipboard operation
UnitySingleton copied to clipboard

Unity completely crashes when trying to access singleton methods or properties

Open janvacek opened this issue 9 months ago • 1 comments

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 avatar Apr 27 '24 14:04 janvacek

it was because of recursion - https://github.com/UnityCommunity/UnitySingleton/blob/main/Assets/Scripts/Runtime/Singleton.cs#L47

janvacek avatar Apr 27 '24 14:04 janvacek