1.使用Obfuscator进行源码层面混淆
插件链接:https://assetstore.unity.com/packages/tools/utilities/obfuscator-48919?locale=zh-CN
2.使用资源混淆脚本把所有资源进行重新hash
注意:准备hash之前,先提交git,打包之前执行一次,打包之后使用git重置修改,让资源恢复原本的hash
脚本:
import sys, getopt, os, subprocess, random, string, sqlite3
def get_random_end():
try:
int_random = random.randint(32, 52)
ret = ''.join(random.sample(string.ascii_letters + string.digits, int_random))
except Exception, e:
print(e)
return ret
def change_sqlite3_db_content(db_path=None):
try:
conn = sqlite3.connect(db_path)
cursor = conn.cursor()
name = ''.join(random.sample(string.ascii_letters,