how to use platform dependent compilation in Bolt?

hello, i’m just wondering how i will use platform dependent compilation in bolt, what i’m trying to do is move these lines of code to visual scripting using bolt

#if !UNITY_EDITOR && UNITY_WEBGL
       WebGLInput.captureAllKeyboardInput = false;
#endif

thanks in advance for all the help.

1 Like

It is not possible out of the box at the moment. You may need to make custom C# nodes with the if def in it.

1 Like

thanks for the info @ericb_unity , is there any sample to look at ?

No, but if i can get time today, I will try to do some tests with different uses case.

1 Like