My game uses a StarterCharacter placed in the StarterPlayer folder. I would like to have all the mesh parts of that character model preloaded. Can I just do this:
ContentProvider:PreloadAsync(game.StarterPlayer.StarterCharacter)
My game uses a StarterCharacter placed in the StarterPlayer folder. I would like to have all the mesh parts of that character model preloaded. Can I just do this:
ContentProvider:PreloadAsync(game.StarterPlayer.StarterCharacter)
Yes you can. PreloadAsync will pass all the descendants of an Instance as well, so passing the StarterCharacter will pass its descendants to be downloaded on priority as well.
Hello, I wanted to point out, that the documentation for PreloadAsync, is not accurate.
The documentation states that PreloadAsync accepts an array of Instances, but then demonstrates the API’s usage by passing an array of strings.
I tried that technique, and it works. Suggest to update the documentation to reflect the actual types accepted by the API.