You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
看了源码,初步认为是MetaLayerBoxCollider代码中
var pivot = Vector2.Scale(ctx.settings.PivotRelativePos, new Vector2(ctx.file.width, ctx.file.height));
的PivotRelativePos值是customPivot的值,而不是MetaLayerPivot最后生成的Pivot的值。但我对程序基本一窍不通,不知道分析的是否正确。
The text was updated successfully, but these errors were encountered:
在aseprite中画的碰撞盒位置:
![QQ图片20200514105733](https://user-images.githubusercontent.com/37565030/81887672-41eddd80-95d2-11ea-8924-0097232d6811.png)
未使用@pivot时unity生成的碰撞盒位置:
![QQ图片20200514105758](https://user-images.githubusercontent.com/37565030/81887729-5df17f00-95d2-11ea-91e0-cb1d0e3cf73a.png)
使用@pivot时unity生成的碰撞盒位置:
![QQ截图20200514105937](https://user-images.githubusercontent.com/37565030/81887739-66e25080-95d2-11ea-9d00-c4f5a6ff45ad.png)
导入设置:
![QQ截图20200514110028](https://user-images.githubusercontent.com/37565030/81887756-7366a900-95d2-11ea-930c-309913ac3003.png)
看了源码,初步认为是MetaLayerBoxCollider代码中
var pivot = Vector2.Scale(ctx.settings.PivotRelativePos, new Vector2(ctx.file.width, ctx.file.height));
的PivotRelativePos值是customPivot的值,而不是MetaLayerPivot最后生成的Pivot的值。但我对程序基本一窍不通,不知道分析的是否正确。
The text was updated successfully, but these errors were encountered: