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 :: how to change scenes in unity 
Csharp :: oncollisionenter 
Csharp :: c# thread sleep 
Csharp :: How do I remove all non alphanumeric characters from a string? 
Csharp :: an entry with the same key already exists asp net 
Csharp :: c# unity 2d play video 
Csharp :: c# open file 
Csharp :: visual studio windows form exit button 
Csharp :: if string contains number c# 
Csharp :: binding command to event wpf 
Csharp :: convert object to xml c# example code 
Csharp :: c# two different random numbers 
Csharp :: get item from icollection 
Csharp :: C# get enum value by DescriptionAttribute 
Csharp :: console writeline unity c# 
Csharp :: How to add a label programatically in c# 
Csharp :: c# get all class properties 
Csharp :: unity copy list 
Csharp :: how to write a variable in console c# 
Csharp :: check strings is equal shell 
Csharp :: group by linq multiple columns c# 
Csharp :: bootstrap distane between col 
Csharp :: delayed function unity 
Csharp :: insert new item listview c# 
Csharp :: c# error CS0515 
Csharp :: tinyint in c# 
Csharp :: c# split a string and return list 
Csharp :: write text files with C# 
Csharp :: unity spherecast 
Csharp :: create material unity script 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =