{"blog_url":"https://baba-s.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2019%2F11%2F28%2F140000\" title=\"\u3010Unity\u3011TryGetComponent \u3092 Unity 2018 \u3067\u3082\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9 - \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>","title":"\u3010Unity\u3011TryGetComponent \u3092 Unity 2018 \u3067\u3082\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9","version":"1.0","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/94867065/1535279515352365","height":"190","author_name":"baba_s","type":"rich","published":"2019-11-28 14:00:00","url":"https://baba-s.hatenablog.com/entry/2019/11/28/140000","categories":["Unity","Unity - \u62e1\u5f35\u30e1\u30bd\u30c3\u30c9","\u305d\u306e\u4ed6 - \u304a\u6c17\u306b\u5165\u308a"],"provider_name":"Hatena Blog","description":"\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 using UnityEngine; public static class ComponentExt { public static bool TryGetComponent<T>( this Component self, out T component ) where T : Component { component = self.GetComponent<T>(); return component != null; } } public static class GameObjectExt { public static bool TryGetComponent<T>\u2026","width":"100%","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/baba_s/","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0"}