How to discover which Device Profile is Being Used

How can i get which Device Profile is being used? I need this information to restrain some game logic if my mobile user is running my game on a tablet or phone.

Hello LuLima,

There are a couple functions that could help you find this, although the only public one that I could find is this one:

This should give you a hold of the UDeviceProfile asset which should allow you to get all of the information you need about the currently selected profile.

Hope this helps!

Wow, that is awesome , i’m checking out the DOCS it gives me the CVARS that i’m using right? Is there by any chance someway to get the profile name? or the type?

Unfortunately I don’t believe you can with this function. There may be ways if you were to edit source to expose the other functions that are private but I haven’t tried it myself so I can’t say for sure.