目录
简要说明:UI上使用SPINE动画+spine中A跟随B
This is a sample of <b>SkeletonGraphic</b> inside a ScrollRect.
Enter <b>PLAY</b> Mode, and try scrolling up and down, or tap and drag the scroll view.
The <i>SkeletonGraphic's</i> <b>RectTransform</b> shall not be smaller than the mesh, otherwise a <i>RectMask2D</i> will omit drawing the skeleton when the <i>RectTransform</i> is completely outside. You can fit the <i>RectTransform</i> to the current pose via the Inspector button <b>Match RectTransform with Mesh</b>.
这是ScrollRect中<b>SkeletonGraphic</b>的示例。
进入<b>播放</b>模式,然后尝试上下滚动,或点击并拖动滚动视图。
<i>SkeletonGraphic的</i><b>RectTransform</b>不应小于网格,否则当<i>RectTransform</i>完全位于外部时,<i>RectMask2D</i>将省略绘制骨架。您可以通过检查器按钮<b>将RectTransform与网格匹配</b>将<i>RectTransform</i>调整到当前姿势。
UI中使用spine动画
建立一个 ScrollView
在Content上挂一个 SkeletonGraphic
把一个 spine角色拖进去 就好了
spine中A跟随B
那个HELLO文字是UI中另一个单独的一个物体
它上面挂一个BoneFollowerGraphic 组件
然后把才刚的UI小人传到这个组件里,再调好跟着哪个骨头