|
What about this error? I use SpriteManager.AddSprite(Sprite); <----- is it not correct? When I played, there is no error but when I stopped play I found this error below InvalidCastException: Cannot cast from source type to destination type. SpriteRoot.Delete () (at Assets/Plugins/Sprite Scripts/Support/SpriteRoot.cs:1085) SpriteBase.Delete () (at Assets/Plugins/Sprite Scripts/Support/SpriteBase.cs:1307) SpriteRoot.OnDestroy () (at Assets/Plugins/Sprite Scripts/Support/SpriteRoot.cs:1138) SpriteRoot ?? fantasyMe
(comments are locked)
|

What SpriteManager is that? The files are quite large... 1307 lines and 1085 ....
I guess you don't use this one:
http://www.unifycommunity.com/wiki/index.php?title=SpriteManager
I use the SpriteManager from EZGUI