API

While the editor is already very powerful and flexible, there may be times when you need additional control or want to implement solutions that are very specific to your project. This is why Polygonjs offers 2 APIs:

  • Use the Scene API to integrate your scene inside a webpage. You can have buttons, sliders or checkboxes update any node, or even receive events from your scene. This is great to create Configurators for instance.
  • Use the Custom Node API to create your own node and expand on Polygonjs Engine. This is great to integrate with another library or simply to experiment new ideas involving code.

Both APIs are in javascript, and both can be combined with each other easily.