Utility methods to help manage layers.
More...
|
static void | CreateLayer (string name) |
| Create a new layer with the given name if it does not exists (Editor Only).
|
|
static int | GetLayer (string name) |
| Returns a layer or create a new one if it does not already exist (The layer will only be created in the Editor).
|
|
static int | GetLayerMaskFromLayerIndex (int index) |
| Convert a layer index value to layer mask.
|
|
static int | GetDefaultLayer (Type type) |
|
static string | GetDefaultLayerName (Type type) |
|
Utility methods to help manage layers.
◆ CreateLayer()
static void DepictionEngine.LayerUtility.CreateLayer |
( |
string |
name | ) |
|
|
static |
Create a new layer with the given name if it does not exists (Editor Only).
- Parameters
-
name | The name of the new layer. |
- Exceptions
-
System.ArgumentNullException | |
◆ GetLayer()
static int DepictionEngine.LayerUtility.GetLayer |
( |
string |
name | ) |
|
|
static |
Returns a layer or create a new one if it does not already exist (The layer will only be created in the Editor).
- Parameters
-
name | The name of the layer. |
- Returns
- The layer int value.
◆ GetLayerMaskFromLayerIndex()
static int DepictionEngine.LayerUtility.GetLayerMaskFromLayerIndex |
( |
int |
index | ) |
|
|
static |
Convert a layer index value to layer mask.
- Parameters
-
index | A layer index from 0-31. |
- Returns
- A layer mask value.
The documentation for this class was generated from the following file: