{"provider_url":"https://hatena.blog","url":"https://toburau.hatenablog.jp/entry/20170406/1491497787","width":"100%","type":"rich","blog_title":"\u30b2\u30fc\u30e0\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u304c\u3093\u3070\u308b\u65e5\u8a18","published":"2017-04-06 01:56:27","categories":["\u30d7\u30ed\u30b8\u30a7\u30af\u30c815","Unity"],"title":"SendMessage","author_url":"https://blog.hatena.ne.jp/toburau/","image_url":null,"version":"1.0","description":"\u81ea\u5206\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u53d6\u5f97\u3057\u306a\u304f\u3066\u3082\u3001GameObject\u306e\u307e\u307e\u3001SendMessage\u3067\u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u305b\u3070\u826f\u3044\u3053\u3068\u306b\u6c17\u304c\u3064\u3044\u305f\u3002 GameObject.SendMessage - Unity \u30b9\u30af\u30ea\u30d7\u30c8\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9 if (Physics.Raycast(pos, dir, out hit)) { GameObject obj = hit.collider.gameObject; obj.SendMessage(\"Hit\"); // Hit\u304c\u547c\u3073\u51fa\u3059\u30e1\u30bd\u30c3\u30c9\u540d } \u3053\u308c\u306a\u3089\u3070\u540d\u524d\u7a7a\u9593\u304c\u9055\u3063\u3066\u3044\u3066\u3082\u547c\u3073\u51fa\u3059\u30e1\u30bd\u30c3\u30c9\u3092\u5b9f\u88c5\u3057\u3066\u304a\u3051\u3070\u5927\u4e08\u592b\u3002","height":"190","blog_url":"https://toburau.hatenablog.jp/","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F20170406%2F1491497787\" title=\"SendMessage - \u30b2\u30fc\u30e0\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u304c\u3093\u3070\u308b\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"toburau"}