Are you saying SkeletonGraphic didn't work for you?
I recommend you familiarize yourself with Unity UI and its basics if you intend to use it extensively in your game. That way, you will also understand what limitations you have when rendering Spine skeletons in UI.
Note that Unity's Canvas element by default only captures and renders UnityEngine.UI-based renderable components. MeshRenderer (which the normal SkeletonAnimation Spine component) is not one of these things. This is why you need to use SkeletonGraphic for UI things, and SkeletonAnimation for non-UI things.
You can get MeshRenderers to render with UI by setting the Canvas mode to Screen Space Camera. It wouldn't be the default way to go about screen-space UI, but it would work, albeit with some extra work setting up a camera for it.