Physics layer information. More...
Public Member Functions | |
LayerInfo (String[] layers, Int32[] defaultMatrix) | |
Creates a new LayerInfo instance. More... | |
Int32 | GetLayerIndex (String name) |
Converts a layer name to the layer index. More... | |
Int32 | GetLayerMask (params String[] layers) |
Get the combined layer mask for multiple layer names. More... | |
Int32 | GetLayerMask (String layer) |
Get the layer mask for a layer name. More... | |
Int32 | GetLayerMask (String layer0, String layer1) |
Get the combined layer mask for two layer names. More... | |
Int32 | GetLayerMask (String layer0, String layer1, String layer2) |
Get the combined layer mask for three layer names. More... | |
String | GetLayerName (Int32 index) |
Convert the layer index to a layer name. More... | |
Boolean | LayerExists (String name) |
Checks if the layer name exists. More... | |
Properties | |
Int32[] | DefaultLayerMatrix [get] |
Returns the default layer matrix. More... | |
Physics layer information.
|
inline |
Creates a new LayerInfo instance.
layers | Available names layers |
defaultMatrix | The default matrix |
|
inline |
Checks if the layer name exists.
name | Layer name |
true
if the layer name exists
|
inline |
Converts a layer name to the layer index.
name | Layer name |
|
inline |
Get the layer mask for a layer name.
layer | Layer name |
|
inline |
Get the combined layer mask for two layer names.
layer0 | Layer name one |
layer1 | Layer name two |
|
inline |
Get the combined layer mask for three layer names.
layer0 | Layer name one |
layer1 | Layer name two |
layer2 | Layer name three |
|
inline |
Get the combined layer mask for multiple layer names.
layers | Multiple layer names |
|
inline |
Convert the layer index to a layer name.
index | Layer index |
|
get |
Returns the default layer matrix.