Delete - InputEnableLayer
From Creation Kit
Member of: InputEnableLayer Script
Forcibly deletes this input enable layer immediately. Any script variables or properties looking at it will be invalidated, and of course any disables it may have held are cleared.
Function Delete() native
; Deletes the layer, and then clears the variable that held it myLayer.Delete() myLayer = None
- Layers will automatically delete themselves if all variables and properties pointing at them are cleared.
- Once deleted, you can't call any more functions on the layer as it will be gone (and an error will print to the log).