E.g. a model of an avatar who has a sign that swings next to him, both separate objects in the glb with separate animations. I’m going to try to do this myself tomorrow but wondered if it would be good to play all anims by default too
Is it safe to edit engine_networking_files_default_components.ts myself or will that get overwritten between updates? I want to customise the below lines to load and assign animations. If I try getting the animations list from the object after it has spawned using the ObjectAdded event on DropListener.ts, I only get 1 animation there but if I read the animations in engine_netwroking… before spawn, I get all the animations in the file
No, please don’t modify core files - you should always use proper callbacks. Changes to those will be gone same as with immutable packages from Unity’s registry and so on.
If there are missing ones, let us know and we can add them, but I think the one Marcel added for the drop listeners should expose all loaded data (including loaded animations) already.
In the droplistener callback I only get 1 animation returned when reading it, its in the commented out region here, I only get one animation when reading the args.detail but maybe I need to grab it as args.gltf to get the root file animations? See commented out region
Will privately wetransfer, local amended engine_networking file here too which works for our needs to play back both animations via the object name matching part of the animation name strings