Hi,
is there any way so i can restrict user not to open developer tools, or restrict to use console.
So, the user can’t access to my script variables.
Hi @sadf and welcome,
Sadly that’s not possible, the dev tools live on the browser and they are available in any webpage, including your PlayCanvas page.
You should be looking at minifying your codebase. There are also JavaScript obfuscator tools that can make your code even harder to ready/study. Just note given the nature of JavaScript no solution is 100% secure.
1 Like