WUMAO

请问在那里设置动画的范围尺寸,在web中应用会多出来一些空白的尺寸。
WUMAO
  • 帖子: 1

Mario

你使用的是spine-webgl 还是Spine Web Player? 播放器将自动将骨架大小调整为画布加上填充的大小。 对于spine-webgl,您必须自己计算比例和位置。 看看这个例子:https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-ts/spine-webgl/example/drag-and-drop.js#L126

Are you using spine-webgl or the Spine Web Player? The player will automatically size the skeleton to the size of the canvas plus padding. For spine-webgl, you have to calculate the scale and position yourself. Have a look at this example: https://github.com/EsotericSoftware/spine-runtimes/blob/4.0/spine-ts/spine-webgl/example/drag-and-drop.js#L126
头像
Mario

Mario
  • 帖子: 2827


回到 中国Spine用户