{"provider_name":"Hatena Blog","published":"2018-09-15 16:24:40","author_name":"hanaaaaaachiru","author_url":"https://blog.hatena.ne.jp/hanaaaaaachiru/","version":"1.0","url":"https://www.hanachiru-blog.com/entry/2018/09/15/162440","blog_url":"https://www.hanachiru-blog.com/","description":"\u306f\u3058\u3081\u306b uGUI\u306eImage\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u6301\u3064SourceImage\u306bResources\u30d5\u30a9\u30eb\u30c0\u306b\u3042\u308bTextureType-Sprite(2Dand UI)\u3067\u3042\u308b\u753b\u50cf\u3092\u52d5\u7684\u306b\u30a2\u30bf\u30c3\u30c1\u3057\u3088\u3046\u3068\u3057\u305f\u969b\u306b\u3001\u5c11\u3057\u3060\u3051\u3064\u307e\u305a\u3044\u305f\u4e8b\u3092\u66f8\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002 \u672c\u984c \u79c1\u306f\u521d\u3081\u306b Sprite sprite = (Sprite)Resources.Load(path); \u3068\u3044\u3063\u305f\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u305f\u3068\u3053\u308d\u3001 InvalidCastException: Cannot cast from source type to destination type. \u3068\u3044\u3063\u305f\u30a8\u30e9\u30fc\u304c\u5410\u304d\u51fa\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002 \u3069\u3046\u3084\u3089\u3046\u307e\u304f\u30ad\u2026","image_url":null,"categories":["Unity"],"title":"\u3010Unity\u3011Resource.Load\u3067\u753b\u50cf\u3092\u8aad\u307f\u8fbc\u3080\u306e\u306b\u30d7\u30c1\u3064\u307e\u305a\u3044\u305f\u4e8b","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.hanachiru-blog.com%2Fentry%2F2018%2F09%2F15%2F162440\" title=\"\u3010Unity\u3011Resource.Load\u3067\u753b\u50cf\u3092\u8aad\u307f\u8fbc\u3080\u306e\u306b\u30d7\u30c1\u3064\u307e\u305a\u3044\u305f\u4e8b - \u306f\u306a\u3061\u308b\u306e\u30de\u30a4\u30ce\u30fc\u30c8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u306f\u306a\u3061\u308b\u306e\u30de\u30a4\u30ce\u30fc\u30c8","provider_url":"https://hatena.blog","type":"rich","width":"100%"}