gpt4 book ai didi

android - Unity3D GenerateManifest.cs

转载 作者:搜寻专家 更新时间:2023-11-01 09:38:58 25 4
gpt4 key购买 nike

Unity 文档 ( https://docs.unity3d.com/540/Documentation/Manual/android-BuildProcess.html ) 说:

Permissions automatically added to the build manifest

Unity automatically adds certain permissions to the manifest. The logic is defined in the file PlatformDependent/AndroidPlayer/Editor/Managed/PostProcessor/Tasks/GenerateManifest.cs :: SetPermissionAttributes. For example, if your script code references Application.internetReachability, Unity automatically adds android.permission.ACCESS_NETWORK_STATE to the manifest. You can edit GenerateManifest.cs to remove it.

在哪里可以找到要编辑的 GenerateManifest.cs?

最佳答案

有一个 XML 文件,您可以看到 android 的权限。要首先访问此文件,您应该为 Android 构建项目,然后转到“...yourProjectPath\Temp\StagingArea”并打开“AndroidManifest.xml”。

关于android - Unity3D GenerateManifest.cs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41060912/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com