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

PREVIOUS NEXT
Code Example
Csharp :: c# linq distinct group by nested list 
Csharp :: HCF of list of number 
Csharp :: how to know character is a digit or not in c# 
Csharp :: c# isdigit mehod 
Csharp :: how use vue createApp 
Csharp :: toggle unity c# 
Csharp :: c# get total milliseconds from datetime 
Csharp :: bash create temporary folder 
Csharp :: unity text custom color 
Csharp :: C# datareadeer return null 
Csharp :: multiplication using arrays 
Csharp :: Change Level in Unity 
Csharp :: c# merge two xml files 
Csharp :: c# convert dictionary object to string 
Csharp :: c# remove all whitespaces from string 
Csharp :: how to validate if date is a weekday or weekend c# 
Csharp :: c# get process file location 
Csharp :: how to stop a form c# 
Csharp :: blazor ref to component in if 
Csharp :: how to concatenate two arrays in c# 
Csharp :: excel isrlgood 
Csharp :: unity tilemap get all tiles 
Csharp :: c# next level script 
Csharp :: mongodb c# batch find 
Csharp :: selenium scroll to element c# 
Csharp :: how read excel data in c# 
Csharp :: how to use curl in asp.net c# 
Csharp :: iterate though data in firebase unity 
Csharp :: migrationbuilder insert data example 
Csharp :: c# iterate sorteddictionary 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =