Unity2017にて、ScriptからButtonのEventを設定したいのですが、なんと書けばアクセス出来るかが分かりません
GameObject selection = Selection.activeGameObject;
Button btn = selection.GetComponent<Button>();
回答1件
あなたの回答
tips
プレビュー
投稿2019/03/10 09:10
Unity2017にて、ScriptからButtonのEventを設定したいのですが、なんと書けばアクセス出来るかが分かりません
GameObject selection = Selection.activeGameObject;
Button btn = selection.GetComponent<Button>();
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/03/15 18:46