• Editor
  • 问个缩放的问题

缩放功能调到负值是,图片会不显示,这是为什么?有解决办法吗?

  • Misaki ответили на это сообщение.
    Related Discussions
    ...

    当缩放值设置为负值时,图片不显示的原因是因为负值缩放会将图片翻转。翻转后的图片可能会超出视口范围,导致看不到图片。

    解决办法有以下几种:

    1. 调整图片位置:确保翻转后的图片仍在视口范围内。
    2. 使用正值缩放:如果不需要翻转图片,可以使用正值缩放。
    3. 检查骨骼和插槽设置:确保骨骼和插槽的设置不会导致图片在负值缩放时被隐藏。

    如果这些方法都不能解决问题,请提供更多的细节,例如具体的操作步骤和期望的结果,以便更好地帮助你解决问题。

    lqtdvhtw123 Maybe Spinebot is right and the negative scale is causing the image not to appear because the back of the texture is facing the camera, but I'm not sure what runtime you're using to begin with, so I'm not sure what you mean by setting the zoom function to a negative value. Which runtime are you using?




    我是这个意思

    • Misaki ответили на это сообщение.

      lqtdvhtw123 I mistakenly thought it was a question about runtime since the Runtimes tag was used. I believe it is because you have enabled Viewport - Backface culling in your Spine settings:

      When checked, triangles facing away from the screen are not drawn. (This option is unchecked by default.)
      Uncheck this box if you want to display images with negative scales.

      • lqtdvhtw123 ответили на это сообщение.
      • Erika оценил это.

        Misaki Many thanks