当前位置:   article > 正文

unity3d中Link文件的含义_link preserve="all

link preserve="all
  1. Okay, a little help for those searching for some instructions on how this works. This is based on trial and error.

    "type" can be either a class name (with full namespace) or just a namespace and every class within that namespace will be excluded.
    Child namespaces will not be excluded just by adding the parent namespace. In order to exclude namespaces recursively, use *


  2. <linker >
  3.     <assembly fullname = "MyAssemblyName" >  // the name of the assembly
  4.         < type fullname = "MyNamespace" preserve = "all" />  // excludes all classes that are direct children of MyNamespace
  5.         < type fullname = "MyNamespace.*" preserve = "all" />  // excludes all namespaces and classes recursively under MyNamespace
  6.         < type fullname = "MyNamespace*" preserve = "all" />  // excludes all namespaces and classes recursively under MyNamespace. Would also exclude the namespace MyNamespaceABC
  7.         < type fullname = "My*" preserve = "all" />  // excludes all namespaces and classes that start with My and all children of those namespaces
  8.         < type fullname = "*" preserve = "all" />  // excludes all namespaces and classes in the assembly
  9.     </assembly >
  10. </linker >

原文链接:http://forum.unity3d.com/threads/i-have-a-problem-with-link-xml.181099/
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/115389
推荐阅读
相关标签
  

闽ICP备14008679号