- Home /
Cannot obfuscate class inherited by MonoBehavior
Hi All,
Been trying out apps that claim to obfuscate Unity builds. Latest one would not change class or method names for any class extending MonoBehavior. Author of app claims Unity will break. Anybody found an app that works with Unity. One that is still supported. Price range under $250.
No luck with CodeGuard or Babel demo.
Thanks
You don't actually have to have much that inherits from monobehaviour. Its possible to make your monobehaviours a thin layer that interfaces between Unity and your own classes. Then you can obfuscate your own classes to your hearts content.
We have tried to eli$$anonymous$$ate monobehavior inheritance. Seems eventually forced to do it because of drag and drop in editor philosophy of Unity?
Don't understand "thin layer". Can you relate this to a design pattern to use?
Not entierly sure either but maybe: $$anonymous$$onobehaviour script A non-monobehaviour script B
script A has only inside it stuff like:
B.dosomething();
B.whatever();
while B is full of obfuscated code
or maybe you can simply inherit from script A in script B, as such you get the A inherited monobehaviour by inheriting from script B
Your answer
