PreloadAsync does not work for animations

Reproduction Steps

To reproduce this issue on your own, do the following things:

  1. Call ContentProvider:PreloadAsync with the first argument being a table with an animation object inside of it.
  2. Try playing the animation by getting the animation track from Animator:LoadAnimation, and observe that it is not already loaded when you do it for the first time.

To reproduce the issue using the repro place, do the following things:

  1. Set ReplicatedStorage.ImportantAnimation’s animation id to an animation you have permissions/access to.
  2. Play test the game, wait until the character loads.
  3. Left click to trigger the animation playing code
  4. Observe the output and that the animation is not loaded the first time you left click, despite preloading being done.

animation_preloading_broken.rbxlx (58.1 KB)

Expected Behavior

I expect the animation to be already loaded when using PreloadAsync, so when using animator:LoadAnimation there would be no delay when using the animation.

Actual Behavior

Even if you use PreloadAsync, the animation will only load when you do animator:LoadAnimation.



Workaround

You can use animator:LoadAnimation to load the animations onto the character beforehand, however that does not guarantee that the animation data will be available next time you use LoadAnimation (etc. when you load a little more than 100 animations, the animations that were loaded first may unload), which may mean that the animations will need to be reloaded whenever character respawns.

Issue Area: Engine
Issue Type: Other
Impact: High
Frequency: Constantly

7 Likes

Thanks for reporting this, we’ve identified the issue and should have a fix ready soon

5 Likes

This should be fixed with the latest update, let me know if you’re still seeing this issue

4 Likes

The release that included this fix (version 563) was rolled back on PC and Mac clients. So you will still see this issue on Mac and PC clients, but it should be fixed when testing in Studio. Mac/PC clients will be fixed in next week’s release.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.