Thanks for trying it out!
Alex Duncan
3
Posts
1
Topics
12
Followers
56
Following
A member registered Feb 09, 2015 · View creator page →
Creator of
Recent community posts
Hi, I'm trying to call DoodleAnimator.ChangeAnimation() and have hit a very serious error that will crash Unity unless I restart the program. My code is pretty simple.
if(playerHits >= minPlayerHits){ if(!activating){ Debug.Log("Activating"); activating = true; anim.ChangeAnimation(activatingAnim); } getPowerUpTimer += Time.deltaTime; if(getPowerUpTimer > getPowerUpTime){ getPowerUpTimer = 0f; playerHits = 0; Debug.Log("HEYO WE GOT DAT POWERUP"); PlayerGetsPowerUp(); } } else if(activating){ activating = false; Debug.Log("Deactivating"); anim.ChangeAnimation(baseAnim); }
The error I get when I call ChangeAnimation is the following:
Assertion failed: TLS Allocator ALLOC_TEMP_THREAD, underlying allocator ALLOC_TEMP_THREAD has unfreed allocations, size 12
The size of the unfreed allocation increments by 12 each frame after this, it seems. I have tried a few other ways to change the animation, but all of them give me the same results.