Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Is necessary protected variables with IL2CPP?

Discussion in 'General Discussion' started by JohnSmith1915, Apr 18, 2019.

  1. JohnSmith1915

    JohnSmith1915

    Joined:
    Apr 21, 2016
    Posts:
    143
    Hi, if i compile builds using IL2CPP i need protect variables for example the score to prevent memory hacks with tools like Cheat Engine or is not possible the memory hacking to a IL2CPP build?
     
  2. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,951
    Yes. IL2CPP helps to obfuscate program code, but does nothing to assist with protecting variables in memory.
     
    Joe-Censored likes this.
  3. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    IL2CPP makes it so IL decompilers won't work on your build, raising the skill level required of the cheater to sift through the source code of your game. It has nothing to do with obscuring variables stored in memory during gameplay.