Answers for "Check object is in layermask unity"

C#
3

Check object is in layermask unity

public bool IsInLayerMask(GameObject obj, LayerMask layerMask)
{
	return ((layerMask.value & (1 << obj.layer)) > 0);
}
Posted by: Guest on May-03-2020

Code answers related to "Check object is in layermask unity"

C# Answers by Framework

Browse Popular Code Answers by Language