You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 11, 2021. It is now read-only.
I'm using Xamarin Android with Cocossharp, Visual Studio 2017(15.9.12), Windows 10.
Object (derived from CCNode) that requires a file, ex. CCSprite(spriteFilename), cannot be created and Cocossharp related functions cannot be used outside thread that Cocossharp is running on.
For example, in CCGameview.viewCreated and layer's scheduled update function, objects can be created and Cocossharp related functions can be used without any problem.
But if I create an object that requires a file like CCSprite(spriteFilename) on some other thread like in UIThread(Main thread), when the code hits CCSprite(spriteFilename) instruction, the application just stops, not crash but does not continue executing.
I'm guessing Cocossharp runs on its own thread and this is a threading context issue and might be intended behavior.
I'm using Xamarin Android with Cocossharp, Visual Studio 2017(15.9.12), Windows 10.
Object (derived from CCNode) that requires a file, ex. CCSprite(spriteFilename), cannot be created and Cocossharp related functions cannot be used outside thread that Cocossharp is running on.
For example, in CCGameview.viewCreated and layer's scheduled update function, objects can be created and Cocossharp related functions can be used without any problem.
But if I create an object that requires a file like CCSprite(spriteFilename) on some other thread like in UIThread(Main thread), when the code hits CCSprite(spriteFilename) instruction, the application just stops, not crash but does not continue executing.
I'm guessing Cocossharp runs on its own thread and this is a threading context issue and might be intended behavior.