Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

Check object is in layermask unity

public bool IsInLayerMask(GameObject obj, LayerMask layerMask)
{
	return ((layerMask.value & (1 << obj.layer)) > 0);
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# bytes to string 
Csharp :: unity get layer of gameobject 
Csharp :: how to run an external program with c# 
Csharp :: unity mouse position to world 
Csharp :: c# copy file to directory 
Csharp :: c# check file exists 
Csharp :: Uncaught TypeError: $(...).validate is not a function 
Csharp :: c# string to memorystream 
Csharp :: check if process is open c# 
Csharp :: c# format string to date yyyymmdd 
Csharp :: c# datetime dd/mm/yyy hh:mm:ss 
Csharp :: rigidbody2d unfreeze position 
Csharp :: c# foreach enum 
Csharp :: round corners of textbox wpf 
Csharp :: vscode c# how to change to externial terminal 
Csharp :: unity Protected 
Csharp :: decimal in .asp.net core 
Csharp :: C# save pdf stream to file 
Csharp :: manchester united 
Csharp :: Schema::defultString larvel 
Csharp :: get date from file c# 
Csharp :: playerInputManager.JoinPlayer(....) 
Csharp :: percentage in c# 
Csharp :: windows form textbox numbers only 
Csharp :: c# stop 
Csharp :: unity c# timer 
Csharp :: unity change tag of go 
Csharp :: c# find index element array 
Csharp :: InvalidOperationException: Calling Scene Raisefrom assembly reloading callbacks are not supported. 
Csharp :: unity how to ommit letters from a string 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =