Version: 2022.2
public static bool genuine ;

描述

如果应用程序在构建后以任何方式进行了更改,则返回 false。

否则返回 true。

**注意**:结合使用 Application.genuineCheckAvailableApplication.genuine 来验证应用程序完整性。访问 Application.genuine 属性是一项资源密集型操作,因此请勿在更新帧或运行其他时间关键代码期间调用该属性。

Android: Returns false if the package name set in project settings mismatches with package name returned at runtime.

You can use this as an anti-piracy check because it checks if the application was altered after being built. See iOS Scripting and Android mobile scripting for more information.