Search
 
SCRIPT & CODE EXAMPLE
 

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;
Comment

PREVIOUS NEXT
Code Example
Csharp :: Program for factorial of a number in c# 
Csharp :: Animator.GotoState: State could not be found UnityEngine.Animator:Play (string) 
Csharp :: C# get all child classes of a class 
Csharp :: clone gameobject unity c# 
Csharp :: how to make console wait c# 
Csharp :: unity check if key pressed 
Csharp :: c# append to file 
Csharp :: how to get the directory of the project in c# 
Csharp :: unity wait for seconds 
Csharp :: how to move mouse in game c# 
Csharp :: unity instantiate empty gameobject 
Csharp :: c# check if list contains string case insensitive 
Csharp :: c# unzip files 
Csharp :: c# length 2d array 
Csharp :: byte array to hex c# 
Csharp :: c# try catch with error message 
Csharp :: generate random number c# 
Csharp :: open new window c# wpf 
Csharp :: list add at index c# 
Csharp :: require admin privileges c# 
Csharp :: c# round to 2 decimal places 
Csharp :: c# declare empty string array 
Csharp :: unity conditional field 
Csharp :: #3d271d 
Csharp :: .net loop through dictionary 
Csharp :: how to log out of unity asset store 
Csharp :: unity length of string 
Csharp :: c# thread sleep 
Csharp :: unity2d click on gameobject 
Csharp :: change picturebox image c# 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =