{"blog_url":"https://baba-s.hatenablog.com/","height":"190","categories":["Unity","Unity - \u62e1\u5f35\u30e1\u30bd\u30c3\u30c9","\u305d\u306e\u4ed6 - \u304a\u6c17\u306b\u5165\u308a"],"author_name":"baba_s","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/94867065/1535279515352365","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>","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","width":"100%","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","type":"rich","url":"https://baba-s.hatenablog.com/entry/2019/11/28/140000","author_url":"https://blog.hatena.ne.jp/baba_s/","published":"2019-11-28 14:00:00","provider_url":"https://hatena.blog","version":"1.0","title":"\u3010Unity\u3011TryGetComponent \u3092 Unity 2018 \u3067\u3082\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9"}