How to load a lottie JSON file and play animation on click?

I don’t think you can use LottieLoader for this. The loader always returns a texture in its onLoad() callback since it converts animated vector graphics into a (renderable) canvas.