Show / Hide Table of Contents

Struct LayerMask

Inherited Members
ValueType.Equals(Object)
ValueType.GetHashCode()
ValueType.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public struct LayerMask

Properties

| Improve this Doc View Source

value

Declaration
public int value { get; set; }
Property Value
Type Description
Int32

Methods

| Improve this Doc View Source

GetMask(String[])

Declaration
public static int GetMask(params string[] layerNames)
Parameters
Type Name Description
String[] layerNames
Returns
Type Description
Int32

LayerToName(Int32)

Declaration
public static string LayerToName(int layer)
Parameters
Type Name Description
Int32 layer
Returns
Type Description
String

NameToLayer(String)

Declaration
public static int NameToLayer(string layerName)
Parameters
Type Name Description
String layerName
Returns
Type Description
Int32

Operators

| Improve this Doc View Source

Implicit(Int32 to LayerMask)

Declaration
public static implicit operator LayerMask(int intVal)
Parameters
Type Name Description
Int32 intVal
Returns
Type Description
LayerMask
| Improve this Doc View Source

Implicit(LayerMask to Int32)

Declaration
public static implicit operator int (LayerMask mask)
Parameters
Type Name Description
LayerMask mask
Returns
Type Description
Int32

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX