Struct SortingLayer
Assembly: UnityEngine.dll
Syntax
public struct SortingLayer
Properties
|
Improve this Doc
View Source
id
Declaration
Property Value
|
Improve this Doc
View Source
layers
Declaration
public static SortingLayer[] layers { get; }
Property Value
|
Improve this Doc
View Source
name
Declaration
public string name { get; }
Property Value
|
Improve this Doc
View Source
value
Declaration
public int value { get; }
Property Value
Methods
GetLayerValueFromID(Int32)
Declaration
public static int GetLayerValueFromID(int id)
Parameters
Type |
Name |
Description |
Int32 |
id |
|
Returns
GetLayerValueFromName(String)
Declaration
public static int GetLayerValueFromName(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
IDToName(Int32)
Declaration
public static string IDToName(int id)
Parameters
Type |
Name |
Description |
Int32 |
id |
|
Returns
IsValid(Int32)
Declaration
public static bool IsValid(int id)
Parameters
Type |
Name |
Description |
Int32 |
id |
|
Returns
NameToID(String)
Declaration
public static int NameToID(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
Extension Methods