In the example code provided in the tutorial the following error is thrown when attempting to store actions in an animation library on the root. Specifically when trying to add actions. Is there another way to do this? The example code provided does not compile.
Fixed. Code was missing this: animationLibraryComponent.animations
if var animationLibraryComponent = entity.components[AnimationLibraryComponent.self] { // Add or modify animations directly in the animations dictionary animationLibraryComponent.animations["RobotReturnToHomeAction"] = robotTravelHomeActionResource animationLibraryComponent.animations["RobotTravelHomeCompleteAction"] = robotTravelHomeCompleteActionResource entity.components[AnimationLibraryComponent.self] = animationLibraryComponent }