I was wondering if there is any way to use a different render script with Android or generally just detect an Android build in lua code. I would like to use a different projection matrix for example in my render script for Android than on PC.
Yes, it is possible. Use sys.get_sys_info()
local sys_info = sys.get_sys_info()
if sys_info.system_name == "Android" then
-- Android code
elseif sys_info.system_name == "Windows" then
-- Windows code
end
6 Likes
Thanks!