Prevents dynamically loaded sprites from creating physical shapes.

This commit is contained in:
2023-03-26 17:07:19 +08:00
parent 6fa459e5d3
commit d6e1b19d32
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ namespace Cryville.Crtr.Browsing {
}
private void DisplayCover(bool succeeded, Texture2D tex) {
if (succeeded) {
_icon.sprite = Sprite.Create(tex, new Rect(0, 0, tex.width, tex.height), Vector2.zero);
_icon.sprite = Sprite.Create(tex, new Rect(0, 0, tex.width, tex.height), Vector2.zero, 160, 0, SpriteMeshType.FullRect);
}
}
public void OnClick() {

View File

@@ -57,7 +57,7 @@ namespace Cryville.Crtr.Browsing {
}
private void DisplayCover(bool succeeded, Texture2D tex) {
if (succeeded) {
_cover.sprite = Sprite.Create(tex, new Rect(0, 0, tex.width, tex.height), Vector2.zero);
_cover.sprite = Sprite.Create(tex, new Rect(0, 0, tex.width, tex.height), Vector2.zero, 160, 0, SpriteMeshType.FullRect);
}
}
public void OnPlay() {