Struct LayerMask
Assembly: UnityEngine.dll
Syntax
Properties
|
Improve this Doc
View Source
value
Declaration
public int value { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
GetMask(String[])
Declaration
public static int GetMask(params string[] layerNames)
Parameters
Type |
Name |
Description |
String[] |
layerNames |
|
Returns
LayerToName(Int32)
Declaration
public static string LayerToName(int layer)
Parameters
Type |
Name |
Description |
Int32 |
layer |
|
Returns
NameToLayer(String)
Declaration
public static int NameToLayer(string layerName)
Parameters
Type |
Name |
Description |
String |
layerName |
|
Returns
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
|
Improve this Doc
View Source
Implicit(LayerMask to Int32)
Declaration
public static implicit operator int (LayerMask mask)
Parameters
Returns
Extension Methods