{"title":"\u3010Unity\u3011UnityEditor.GameObjectUtility.DuplicateGameObject \u3067\u30b2\u30fc\u30e0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8907\u88fd\u3059\u308b\u65b9\u6cd5","author_name":"baba_s","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2025%2F03%2F09%2F182839\" title=\"\u3010Unity\u3011UnityEditor.GameObjectUtility.DuplicateGameObject \u3067\u30b2\u30fc\u30e0\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8907\u88fd\u3059\u308b\u65b9\u6cd5 - \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_url":"https://baba-s.hatenablog.com/","width":"100%","published":"2025-03-09 18:28:39","type":"rich","provider_name":"Hatena Blog","url":"https://baba-s.hatenablog.com/entry/2025/03/09/182839","description":"\u6982\u8981 using UnityEditor; internal static class Example { [MenuItem( \"Tools/Example\" )] private static void Run() { var gameObject = Selection.activeGameObject; var clone = GameObjectUtility.DuplicateGameObject( gameObject ); Selection.activeGameObject = clone; } } Unity 2023.1.0f1 \u304b\u3089 UnityEditor.GameOb\u2026","categories":["Unity"],"image_url":null,"provider_url":"https://hatena.blog","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","version":"1.0","author_url":"https://blog.hatena.ne.jp/baba_s/","height":"190"}