Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity editor select object in script

//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;
 
PREVIOUS NEXT
Tagged: #unity #editor #select #object #script
ADD COMMENT
Topic
Name
7+1 =