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

check if an object is active unity

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

PREVIOUS NEXT
Code Example
Csharp :: vb.net add row to datagridview programmatically 
Csharp :: change size of a unity object 
Csharp :: Unity gameobject visible to specific camera 
Csharp :: unity get gameobject from hit 
Csharp :: how to get row index of selected row in gridview asp.net webforms 
Csharp :: how to find current country c# 
Csharp :: how to read a text file C# 
Csharp :: how to add rigidbody in unity 
Csharp :: linq when name then orderby 
Csharp :: unity gui style color button 
Csharp :: if set active == false unity 
Csharp :: array reduce c# 
Csharp :: How to type custom backcolor on c# winform 
Csharp :: unity tilemap get all tiles 
Csharp :: all substrings of a string c# 
Csharp :: how to iterate between hour range in c# 
Csharp :: unity get pivot position 
Csharp :: Plugging a Third-Party IoC Container (e.g. AutoFac) into .NET Core 6 
Csharp :: c# system.text.json deserialize 
Csharp :: how to trim path in C# 
Csharp :: on trigger unity 
Csharp :: set text in unity invisible 
Csharp :: Convert Json String to model Class or Object 
Csharp :: sum the digits in c# 
Csharp :: and operator in c# 
Csharp :: dynamically add rows to datagridview c# 
Csharp :: euler to quaternion 
Csharp :: edit list element linq c# 
Csharp :: c# array.reduce 
Csharp :: wpf relativesource 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =