<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bluebirdofoz</author_name>
  <author_url>https://blog.hatena.ne.jp/bluebirdofoz/</author_url>
  <blog_title>MRが楽しい</blog_title>
  <blog_url>https://bluebirdofoz.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>本日は Unity の小ネタ枠です。 Unityでスクリプトからメニュー項目を実行する方法です。 EditorApplication.ExecuteMenuItem Unityでスクリプトからメニュー項目を実行するにはEditorApplication.ExecuteMenuItem関数を利用します。 引数にメニューのパスを指定してスクリプトから処理を実行できます。 docs.unity3d.com // メニューの GameObject -&gt; Create Empty を実行する EditorApplication.ExecuteMenuItem(&quot;GameObject/Create Emp…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbluebirdofoz.hatenablog.com%2Fentry%2F2024%2F01%2F31%2F232809&quot; title=&quot;Unityでスクリプトからメニュー項目を実行する - MRが楽しい&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/b/bluebirdofoz/20240131/20240131232651.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-01-31 23:28:09</published>
  <title>Unityでスクリプトからメニュー項目を実行する</title>
  <type>rich</type>
  <url>https://bluebirdofoz.hatenablog.com/entry/2024/01/31/232809</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
