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 :: check if string is email c# 
Csharp :: como crear un numero aleatorio en c# 
Csharp :: bitmasking in c# 
Csharp :: Check object is in layermask unity 
Csharp :: convert string array to int c# 
Csharp :: vue.createapp is not a function 
Csharp :: c# get file size in bytes 
Csharp :: Debug raycasthit2d unity 
Csharp :: unity 2d raycast mouse 
Csharp :: set width of rect transform unity 
Csharp :: how to set a custom size for window in monogame 
Csharp :: c# datetime dd/mm/yyy hh:mm:ss 
Csharp :: unity 3d camera rotate up and down 
Csharp :: camera follow player unity smooth 
Csharp :: unity distance between 2 vectors 2d 
Csharp :: json stringify c# 
Csharp :: c# output double with precision 
Csharp :: serilog loglevel order 
Csharp :: unity get current scene 
Csharp :: C# cycle through directory 
Csharp :: unity print 
Csharp :: c# ipaddress from localhost 
Csharp :: how to split and get last index values in c# 
Csharp :: c# format string with 2 decimals 
Csharp :: system.text.json DeserializeAsync when to use 
Csharp :: wpf fixed size window 
Csharp :: c# socket receive 
Csharp :: serializefield for animator 
Csharp :: byte to stream c# 
Csharp :: unity list to array 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =