Hello,
I would like to get some clarification/insight on using a Spine object within a Unity canvas.
As far as I know, we have two options here (please note this is using a "Screen space : Camera” ):
-We can use the recommended SkeletonGraphic(UI) but we can’t use the mecanim system with it. On the flip side, it is displayed as a UI element straight out of the box.
-Alternatively, i have tried using the regular SkeletonMecanim system we use extensively in our game in a Canvas.
In the latest case, i've added a Rect Transform component on it (this is used to anchor the element, the spine object here, correctly on screen). Also, i've changed the sorting layer to UI and set a Pos Z of -1 in the Rect Transform values. This seems to work fine.
My question is the following: the SkeletonMecanim spine object uses a mesh renderer (which should not render in UI space) but Unity might assumes it's purely 2D because of the RectTransform component added on top and therefore render it. Can you tell me if this is a no-no way of doing things or can it work without any major issues?