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
应该要拿到图片设置的的spritePixelsPerUnit传进去 var importer = AssetImporter.GetAtPath(assetPath) as TextureImporter; var sprite = Sprite.Create(texture, new Rect(0, 0, texture.width, texture.height), Vector2.one * 0.5f, importer.spritePixelsPerUnit;);
The text was updated successfully, but these errors were encountered: