{"blog_url":"https://baba-s.hatenablog.com/","published":"2017-03-02 10:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2017%2F03%2F02%2F100000\" title=\"\u3010Unity\u3011\u3010NGUI\u3011UIRoot \u306e\u5b50\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u5ea7\u6a19\u3092\u8fd4\u3059\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>","provider_name":"Hatena Blog","type":"rich","author_name":"baba_s","provider_url":"https://hatena.blog","categories":["Unity","Unity - \u62e1\u5f35\u30e1\u30bd\u30c3\u30c9"],"height":"190","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/94867065/1535279515352365","title":"\u3010Unity\u3011\u3010NGUI\u3011UIRoot \u306e\u5b50\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u5ea7\u6a19\u3092\u8fd4\u3059\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","version":"1.0","url":"https://baba-s.hatenablog.com/entry/2017/03/02/100000","width":"100%","author_url":"https://blog.hatena.ne.jp/baba_s/","description":"using UnityEngine; /// <summary> /// UIWidget \u578b\u306e\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9\u3092\u7ba1\u7406\u3059\u308b\u30af\u30e9\u30b9 /// </summary> public static class UIWidgetExt { /// <summary> /// UIRoot \u306e\u5b50\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u5ea7\u6a19\u3092\u8fd4\u3057\u307e\u3059 /// </summary> public static Vector3 GetGlobalPosition( this Component self ) { if ( self == null ) return Vector3.zero; var transform = self\u2026"}