- Home /
Sprite Root Cannot cast from source type to destination type.
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
Posts: 2
Joined: Thu Jun 16, 2011 4:56 pm
What Sprite$$anonymous$$anager 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=Sprite$$anonymous$$anager
Your answer

Follow this Question
Related Questions
InvalidCastException: Cannot cast from source type to destination type. 4 Answers
Cannot cast from source type to destination type ERROR! 2 Answers
Cannot cast from source to destination type 1 Answer
C# Getting "Cannot cast from source type to destination type" even though it's working. 1 Answer
System.InvalidOperationException: Cannot start process because a file name has not been provided 0 Answers