Well, I can say that this method currently will not work unless the parent entity that holds the animation has a “Model (legacy)” component added to it. You will not see the animation in the editor either unless you add a Model (legacy) component and change the Type to anything but Asset.
method from a couple years ago: How to attach a camera to an animation object