GetLayer

Returns the name of the layer the equipment belongs to.

🔁 Function

String GetLayer();

⚙️ Parameters

None

↩️ Return Value

A string containing the name of the layer or Background if it doesn’t belong to any layer.

📝 Example

let cc = GetComponentByNameAndType("Conveyor1", "Conveyor");
LogDebug("Layer = " + cc.GetLayer());