📜  unity editor select object in script - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:46.550000             🧑  作者: Mango

代码示例1
//Put this at the top of your script if you haven't already
using UnityEditor;

//This is how to select a gameObject
//Replace the "gameObject" with any gameobject
Selection.activeGameObject = gameObject;