Delete - InputEnableLayer

From Creation Kit
Jump to: navigation, search

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.

Syntax

Function Delete() native

Parameters

None.

Return Value

None

Examples

; Deletes the layer, and then clears the variable that held it
myLayer.Delete()
myLayer = None

Notes

  • 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).

See Also