Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

check if gameobject is active

if (gameObject.activeSelf)
{
	// this happens when object is active
}
Comment

unity check if gameobject is active

// To check if a GameObject is active:
gameObject.activeSelf;
Comment

unity check gameobject active

if (gameObject.activeInHierarchy)
Comment

check if an object is active unity

gameObject.activeSelf //is active
!gameObject.activeSelf //isnt active
Comment

PREVIOUS NEXT
Code Example
Csharp :: C# loop through array of objet 
Csharp :: length of a string c# 
Csharp :: convert xml string to file c# 
Csharp :: asp.net core mvc jsonresult example 
Csharp :: calculate how much memory an object take c# 
Csharp :: delegate in c# 
Csharp :: datetime default c# 
Csharp :: json property c# 
Csharp :: c# set cursor pos 
Csharp :: unity gui text 
Csharp :: getter setter c# 
Csharp :: c# bubble sort 
Csharp :: c# return 2 values 
Csharp :: c# copy files from one folder to another 
Csharp :: c# datagridview select row right click 
Csharp :: c# get type of class 
Csharp :: basic of c# sockets 
Csharp :: text read C# 
Csharp :: c# switch statements 
Csharp :: c# datetime blank 
Csharp :: stringbuilder to string c# 
Csharp :: create new .net core project visual studio 
Csharp :: how to load file from resources in c# 
Csharp :: draw on picturebox c# 
Csharp :: get both item and index in c# 
Csharp :: c# replace multiple characters 
Csharp :: c# remove all items from list where item value is null 
Csharp :: on collision unity 
Csharp :: c# wpf row definition height * in code 
Csharp :: create new object c# 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =