Skip to content

Layer.enable

Terry Cavanagh edited this page Feb 28, 2018 · 3 revisions
Layer.enable();

Manually enable the Layers plugin.

All Haxegon plugins have an enable() function, which is optional. You normally don't need to call this unless you're doing something complicated.

Example:

import haxegon.*;

class Main{
  function init(){
    //Manually enable the Layers plugin.
    Layer.enable();
  }

  function update(){
  }
}
Clone this wiki locally