2D Toolkit Forum

2D Toolkit => Support => Topic started by: davedev on October 28, 2013, 08:40:03 pm

Title: Problem Getting Platform 2x Working
Post by: davedev on October 28, 2013, 08:40:03 pm
I am getting this error when I try to implement defining a platform of "2x":

NullReferenceException: Object reference not set to an instance of an object
tk2dSpriteCollectionData.get_inst () (at Assets/TK2DROOT/tk2d/Code/Sprites/tk2dSpriteCollectionData.cs:455)
tk2dBaseSprite.Awake () (at Assets/TK2DROOT/tk2d/Code/Sprites/tk2dBaseSprite.cs:638)
tk2dSprite.Awake () (at Assets/TK2DROOT/tk2d/Code/Sprites/tk2dSprite.cs:21)

Prior to this, I was not getting an error, but it also wasn't switching to the 2x sprite. I've attached a copy of my assets folder. Any ideas on what I am doing wrong?

Title: Re: Problem Getting Platform 2x Working
Post by: unikronsoftware on October 28, 2013, 10:30:42 pm
Please don't post zip files with the project in the support forum - use the private support forum for that. Also, just exporting the assets folder isn't enough, you should turn on meta files if you want to do this.
Title: Re: Problem Getting Platform 2x Working
Post by: davedev on October 28, 2013, 10:45:19 pm
Sorry. Didn't know. I posted a request to the private support forum for membership.