Files
Leenkx_Examples/call_hx/Bundled/my_plugin.js

15 lines
248 B
JavaScript
Raw Normal View History

2026-05-06 17:52:45 -07:00
// Call Plugin class exposed from Haxe
2026-10-25 12:04:24 -07:00
var plugin = new lnx.Plugin();
2026-05-06 17:52:45 -07:00
plugin.hello();
var scene = plugin.scene();
var rot = 0.0;
plugin.update = function() {
rot += 0.01;
var o = scene.getChild("Cube");
o.transform.setRotation(0, 0, rot);
}