Hello !
All my content is loaded dynamically (my game starts with an empty map) so i’m not relying on maps for cooking.
Instead, i put all my meshes (skeletal and static) in a specific directory and i add this directory to the list of directories to be cooked (in “project settings/packaging” options).
It seems that for each object, all the references are recursively followed until everything related to the object is cooked (material, textures, etc.). Works great.
Unfortunately, the animations seem to be an exception here, they are never cooked if they are not in the directory specificaly marked for cooking.
The repro step should look something like that:
- create a skeletal mesh with its and animations
- do not spawn it on the map, so it’s not cooked by default
- put it in a directory, let’s call it A
- put the and animations in a different directoty, let’s call it B
-in the "project setting/packaging "section, add A only to the list of additionnal directories to cook (do not add B). - package the game
On my computer, the skeletal mesh is cooked and packaged but the animations are not so it seems that the references to the animations through the are not followed by the cooking process (whereas every other properties are).
Yet, if i open the skeletal mesh with the reference viewer, i can see the animations are referenced and linked to the skeletal mesh through the , as expected.
But they are no cooked nor added to the release of the game.
Is this intended ?
Thanks
Cedric