Delete - InputEnableLayer

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.

SyntaxEdit

Function Delete() native

ParametersEdit

None.

Return ValueEdit

None

ExamplesEdit

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

NotesEdit

  • 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 AlsoEdit