x


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
more ▼

asked Jun 17 '11 at 02:15 AM

fantasyMe gravatar image

fantasyMe
1 9 10 10

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

Jun 17 '11 at 05:09 AM Bunny83

I use the SpriteManager from EZGUI

Jun 17 '11 at 01:53 PM fantasyMe
(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1949
x69
x51
x37
x1

asked: Jun 17 '11 at 02:15 AM

Seen: 915 times

Last Updated: Jun 17 '11 at 01:53 PM