LNXSDK/leenkx/Sources/leenkx/logicnode/GetCameraScaleNode.hx
2025-01-22 16:18:30 +01:00

19 lines
336 B
Haxe

package leenkx.logicnode;
import iron.object.CameraObject;
class GetCameraScaleNode extends LogicNode {
public function new(tree: LogicTree) {
super(tree);
}
override function get(from: Int): Dynamic {
var camera: CameraObject = inputs[0].get();
if (camera == null) return null;
return camera.data.raw.ortho[1]*2;
}
}