Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - jhocking

Pages: [1]
1
Support / infinite scanning loop when create Sprite
« on: September 17, 2014, 06:14:42 pm »
I'm starting to have problems with 2D Toolkit in a project that had been working previously. Basically, it keeps getting stuck on a progress bar that says "Scanning Project" and I end up having to Force Quit. For example, when I try to create a Sprite (ie. choose Sprite from the Assets Create menu) then it just goes to scanning project.

I have installed an updated version of Unity to test with, but I still kept the old version installed too. Specifically, this project was created in and I'm still opening it in Unity 4.2.2, but I recently installed Unity 4.5 in a different location. As part of that process we renamed the old Unity folder from "Unity" to "Unity42" perhaps that's related to this problem?

I realize I don't really have much information to go off of, so there's only a slim chance that this can really be solved, but I'm hoping to maybe get some pointers to troubleshooting steps to try. I did try the "Rebuild Index" option in the 2D Toolkit menu but that didn't fix it; anything else I should pay attention to?

2
Support / memory leak while using tk2dSprite.CreateFromTexture()
« on: February 22, 2014, 12:11:09 am »
I was really pleased to see that I can display images downloaded from the internet by using tk2dSprite.CreateFromTexture()

However I've noticed that when I do so, and then Destroy the sprite once I'm done with it, the scene gets littered with all the sprite collections spawned for the dead sprites. I'm guessing I can avoid this memory leak by using tk2dSpriteCollectionData.CreateFromTexture(), so that I can directly reference and recycle sprite collections, but it does seem a bit roundabout to do things that way.

Is there a way to use tk2dSprite.CreateFromTexture() while clearing out dead sprite collections? This isn't a huge memory leak, since the sprite collections are all cleared out when I load a new level, but it's still something I want to fix.

Pages: [1]