在Unity项目中,Spine导出的图片是打包在一起的图集,是否支持使用独立的(未合并的)图片来进行使用?
可以不使用合并的图集吗?
- Изменено
我不确定我是否正确理解了你的问题,因为机器翻译似乎效果不好,但你是在寻找运行时的重打包?如果是,请看运行时重打包部分。
I’m not sure if I'm understanding your question correctly because machine translation does not seem to work well, but are you looking for repacking at run time? If so, please see the 运行时重打包 section:
spine-unity 运行时文档: 组合皮肤
如果这不是你要找的,能否请你更详细地描述一下?
If this is not what you were looking for, could you please describe it in more detail?
Misaki написал我不确定我是否正确理解了你的问题,因为机器翻译似乎效果不好,但你是在寻找运行时的重打包?如果是,请看运行时重打包部分。
I’m not sure if I'm understanding your question correctly because machine translation does not seem to work well, but are you looking for repacking at run time? If so, please see the 运行时重打包 section:
spine-unity 运行时文档: 组合皮肤如果这不是你要找的,能否请你更详细地描述一下?
If this is not what you were looking for, could you please describe it in more detail?
抱歉,不是这个意思,我们的美术人员把手绘的序列帧放进spine里做成动画,每一帧都是一张图片。但在spine导出的时候这些序列帧被合并在一张图集上了,当我们想通过UV计算来实现一些效果(比如扭曲)的时候就会导致混乱,所以有没有办法直接使用这些手绘序列帧,或者在spine导出的时候,每张序列帧都做为独立的图集来使用?
谢谢你详细说明你想做什么。如果你想在Unity中结合逐帧动画,可以使用BoneFollower组件和SkeletonRenderSeparator,这样序列图像可以跟随你的骨架的某根骨头,你可以把图像放在你喜欢的任何一层。:
spine-unity Runtime Documentation: BoneFollower
spine-unity Runtime Documentation: SkeletonRenderSeparator
从Spine导出时,为了分离每一帧,你可以使用pack.json。它允许你为每个文件夹设置纹理打包器的设置。例如,如果你为装有你想分离的图片的文件夹指定一个小的maxWidth
和maxHeight
,你可以让它每帧打包一页。更多信息请参见用户指南的下面一页。
纹理打包 - Spine用户指南: JSON配置
===
Thank you for elaborating on what you want to do. If you would like to combine the frame-by-frame animation in Unity, the BoneFollower component and SkeletonRenderSeparator could be used so that the sequence images can follow a bone of your skeleton and you can put the images on any layer you like:
spine-unity Runtime Documentation: BoneFollower
spine-unity Runtime Documentation: SkeletonRenderSeparator
To separate each frame when exporting from Spine, you can use pack.json. It allows you to set the texture packer settings for each folder. For example, if you specify a small maxWidth
and maxHeight
for the folder with images you want to separate, you could make it so that one page is packed per frame. Please see the following page of the user guide for more information:
纹理打包 - Spine用户指南: JSON配置
Misaki написал谢谢你详细说明你想做什么。如果你想在Unity中结合逐帧动画,可以使用BoneFollower组件和SkeletonRenderSeparator,这样序列图像可以跟随你的骨架的某根骨头,你可以把图像放在你喜欢的任何一层。:
spine-unity Runtime Documentation: BoneFollower
spine-unity Runtime Documentation: SkeletonRenderSeparator从Spine导出时,为了分离每一帧,你可以使用pack.json。它允许你为每个文件夹设置纹理打包器的设置。例如,如果你为装有你想分离的图片的文件夹指定一个小的
maxWidth
和maxHeight
,你可以让它每帧打包一页。更多信息请参见用户指南的下面一页。
纹理打包 - Spine用户指南: JSON配置===
Thank you for elaborating on what you want to do. If you would like to combine the frame-by-frame animation in Unity, the BoneFollower component and SkeletonRenderSeparator could be used so that the sequence images can follow a bone of your skeleton and you can put the images on any layer you like:
spine-unity Runtime Documentation: BoneFollower
spine-unity Runtime Documentation: SkeletonRenderSeparatorTo separate each frame when exporting from Spine, you can use pack.json. It allows you to set the texture packer settings for each folder. For example, if you specify a small
maxWidth
andmaxHeight
for the folder with images you want to separate, you could make it so that one page is packed per frame. Please see the following page of the user guide for more information:
纹理打包 - Spine用户指南: JSON配置
尝试了修改maxWidth
和maxHeight
,但由于每帧的大小也不一样,没有一个特别合适的尺寸来设置,如果设置的很小(比如16像素)就会导出失败……
我已经向Spine编辑器的开发者Nate询问过了,目前除了使用pack.json来调整纹理页面的大小外,似乎没有有效的方法。因此,在Unity中添加图片可能比在Spine中打包更容易。
I have checked with Nate, the developer of the Spine editor, and currently there does not seem to be an effective way to do this other than using pack.json to adjust the texture page size. Therefore, it may be easier to add the images in Unity than to pack them in Spine.
Misaki написал我已经向Spine编辑器的开发者Nate询问过了,目前除了使用pack.json来调整纹理页面的大小外,似乎没有有效的方法。因此,在Unity中添加图片可能比在Spine中打包更容易。
I have checked with Nate, the developer of the Spine editor, and currently there does not seem to be an effective way to do this other than using pack.json to adjust the texture page size. Therefore, it may be easier to add the images in Unity than to pack them in Spine.
我知道了,谢谢你