{"width":"100%","blog_url":"https://baba-s.hatenablog.com/","categories":["Unity","Unity - Tips"],"author_name":"baba_s","author_url":"https://blog.hatena.ne.jp/baba_s/","provider_url":"https://hatena.blog","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/94867065/1535279515352365","type":"rich","version":"1.0","published":"2020-03-13 09:00:00","title":"\u3010Unity\u3011\u30b2\u30fc\u30e0\u5b9f\u884c\u4e2d\u306b Texture2D \u3092 Sprite \u306b\u5909\u63db\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2020%2F03%2F13%2F090000\" title=\"\u3010Unity\u3011\u30b2\u30fc\u30e0\u5b9f\u884c\u4e2d\u306b Texture2D \u3092 Sprite \u306b\u5909\u63db\u3057\u3066\u4f7f\u7528\u3059\u308b\u65b9\u6cd5 - \u30b3\u30ac\u30cd\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","url":"https://baba-s.hatenablog.com/entry/2020/03/13/090000","description":"\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 using UnityEngine; public static class Texture2DExt { public static Sprite ToSprite( this Texture2D self ) { var rect = new Rect( 0, 0, self.width, self.height ); var pivot = Vector2.one * 0.5f; var newSprite = Sprite.Create( self, rect, pivot ); return newSprite; } } \u4f7f\u7528\u4f8b using UnityEngine; p\u2026","provider_name":"Hatena Blog","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0"}