Answers for "collider layer = to 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
0

collider layer = to layermask unity

layermask == (layermask | (1 << layer))
Posted by: Guest on August-09-2020

Code answers related to "collider layer = to layermask unity"

C# Answers by Framework

Browse Popular Code Answers by Language