2D Toolkit Forum

2D Toolkit => Support => Topic started by: Cybertiger on September 04, 2015, 10:54:39 am

Title: Rebuild Index Memory issue
Post by: Cybertiger on September 04, 2015, 10:54:39 am
Hello,
I am using 2DToolkit version 2.5.4 on a MAC with 8Gigs of RAM.
Rebuilding Index crashes my Unity due to a Memory exception as my project is quite large.
Rebuilding Index was actually always working fine but i had to rebuild my Unity library recently due
to a crash and now rebuilding index always crashes while "Scanning Project Folder..." at almost the beginning...
usually takes about 5 minutes to rebuild the index for my project.

I was wondering if there would be a way to rebuild the index in chunks through code?
If not, would you have any other suggestions to get around this memory problem?

Many thanks in advance
Title: Re: Rebuild Index Memory issue
Post by: unikronsoftware on September 09, 2015, 03:43:21 pm
Hi,

Yes, if you fancy getting your hands dirty...
tk2dEditorUtility.cs, CreateIndex() creates the index.

You can get it to do a few at a time by hacking the loops in there :)