forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
@ -0,0 +1,19 @@
|
||||
package leenkx.logicnode;
|
||||
|
||||
import leenkx.trait.internal.CanvasScript;
|
||||
|
||||
class SetGlobalCanvasVisibilityNode extends LogicNode {
|
||||
|
||||
public function new(tree:LogicTree) {
|
||||
super(tree);
|
||||
}
|
||||
|
||||
override function run(from: Int) {
|
||||
#if lnx_ui
|
||||
var value: Bool = inputs[1].get();
|
||||
CanvasScript.getActiveCanvas().setCanvasVisible(value);
|
||||
#end
|
||||
|
||||
runOutput(0);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user