Version: 2017.1

PlayerSettings.useMacAppStoreValidation

切换到手册
public static bool useMacAppStoreValidation ;

描述

启用 Mac App Store 的收据验证。

This enables receipt validation for the Mac App Store. If this is enabled, your game will only run when it contains a valid receipt from the Mac App Store. Use this when submitting games to Apple for publishing on the App Store. This prevents people from running the game on any computer then the one it was purchased on.

请注意,此功能不实现任何强大的复制保护。特别需要说明的是,针对一个 Unity 游戏的任何潜在 破解都将对所有其他 Unity 内容有效。因此, 建议使用 Unity 的插件功能在此基础上实现您自己的 收据验证代码。但是,由于 Apple 要求在显示屏幕设置对话框之前的最初阶段进行插件验证, 因此您仍应启用此检查,否则 Apple 可能会拒绝您的提交。