Reproduction Steps
To reproduce this issue on your own, do the following things:
- Call ContentProvider:PreloadAsync with the first argument being a table with an animation object inside of it.
- 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:
- Set ReplicatedStorage.ImportantAnimation’s animation id to an animation you have permissions/access to.
- Play test the game, wait until the character loads.
- Left click to trigger the animation playing code
- 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