进此链接,查找被裁剪掉的类:Unity - Manual: YAML Class ID Reference
创建一个文件link.xml,放到unity工程目录下,任意位置,写入被裁剪的类
格式:1、类库? 2、命名空间.类名
<linker>
<assembly fullname="UnityEngine.TerrainPhysicsModule">
<type fullname="UnityEngine.TerrainCollider" preserve="all"/>
</assembly>
<assembly fullname="UnityEngine.AIModule">
<type fullname="UnityEngine.AI.NavMeshData" preserve="all"/>
</assembly>
<assembly fullname="UnityEngine.PhysicsModule">
<type fullname="UnityEngine.CapsuleCollider" preserve="all"/>
</assembly>
<assembly fullname="UnityEngine.CoreModule">
<type fullname="UnityEngine.BillboardRenderer" preserve="all"/>
<type fullname="UnityEngine.LODGroup" preserve="all"/>
<type fullname="UnityEngine.BillboardAsset" preserve="all"/>
</assembly>
<assembly fullname="UnityEngine.TerrainModule">
<type fullname="UnityEngine.Tree" preserve="all"/>
<type fullname="UnityEngine.SpeedTreeWindAsset" preserve="all"/>
</assembly>
</linker>
|