Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity get layer of gameobject

// This will retrun the layer mask of the specified gameObject
gameObject.layer

// You can as well modify this value through code
gameObject.layer = LayerMask.NameToLayer("SomeOtherLayer")
Comment

unity get layer of gameobject

// This will retrun the layer mask of the specified gameObject
gameObject.layer

// You can as well modify this value through code
gameObject.layer = LayerMask.NameToLayer("SomeOtherLayer")
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# open folder in explorer 
Csharp :: change sprite of gameobject unity 
Csharp :: unity mouse position to world 
Csharp :: c# input integer 
Csharp :: Character Controller unity isGrounded is false 
Csharp :: unity play particle system 
Csharp :: c# check to see if dictionary key exists 
Csharp :: kotlin random number 
Csharp :: unity foreach dictionary 
Csharp :: unity coroutine 
Csharp :: unity android quit application 
Csharp :: left moust click unity 
Csharp :: c# boilerplate 
Csharp :: unity textmeshpro 
Csharp :: format phone number in c# .net 
Csharp :: laravel route redirect 
Csharp :: unity 2d detect click on sprite 
Csharp :: c# how to get screen resolution in class 
Csharp :: how to destroy object in unity c# 
Csharp :: check if gameobject exists unity 
Csharp :: get key unity 
Csharp :: c# take first 4 characters of string 
Csharp :: c# datediff minutes 
Csharp :: c# iformfile to string 
Csharp :: c# generate random int in range 
Csharp :: xml node update attribute value c# 
Csharp :: when do i need to end a sentence with ; in c# 
Csharp :: check c# date for 0001/01/01 
Csharp :: snx disconnect linux 
Csharp :: Attach Mixer to Audio Source via script 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =