Check current platform

Hi guys, I wanna implement some code that will enable virtual joysticks if on phone, and will keep the screen clear if on pc. Is this kind of logic possible? Thanks!

I assume you mean in blueprints looking on category. There node that return platform name:

You can use it to run conditional code with “Branch” node

But if you talking about default virtual joystick, they already should run only on mobile platform by default, you can set stuff related to them in project settings

1 Like