Horje
checking a gamobjects layer Code Example
unity check collider layer
 function OnCollisionEnter(collision : Collision)
 {
     if (collision.collider.gameObject.layer == LayerMask.NameToLayer("LAYER_NAME"))
     {
          Debug.Log("Touched a rail");
     }
 }
checking a gamobjects layer
if(gameObject.layer == LayerMask.NameToLayer("LAYER_NAME")){}




Csharp

Related
how to remove an element from an array c# Code Example how to remove an element from an array c# Code Example
asp.net mvc temp data Code Example asp.net mvc temp data Code Example
teleport in vue Code Example teleport in vue Code Example
get diff btw datetimes two C# Code Example get diff btw datetimes two C# Code Example
how to remove all comma from string c# Code Example how to remove all comma from string c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10