Class LinkerUtility | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class LinkerUtility

    This utility is used by some packages to create or modify a link.xml file in the user's project. This is necessary when using the IL2CPP scripting backend to preserve some packages' runtime assemblies.

    See Managed bytecode stripping with IL2CPP for more information.

    Inheritance
    System.Object
    LinkerUtility
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEditor.XR.ARExtensions
    Syntax
    public static class LinkerUtility

    Methods

    AssemblyStrippingEnabled(BuildTargetGroup)

    Determines whether assembly stripping is enabled for the given BuildTargetGroup. If it is, then EnsureLinkXmlExistsFor(String) can be used to create and validate a special file which will prevent assembly stripping.

    Declaration
    public static bool AssemblyStrippingEnabled(BuildTargetGroup targetGroup)
    Parameters
    Type Name Description
    BuildTargetGroup targetGroup
    Returns
    Type Description
    System.Boolean

    EnsureLinkXmlExistsFor(String)

    Checks for the existence of a link.xml file in the user's Assets folder, and validates it if it exists. If a correction is necessary (i.e., the file is missing or incorrect), it prompts the user to fix the problem, cancel the build, or take no action.

    This utility is intended to be used by platform-specific packages during a player build.

    Declaration
    public static void EnsureLinkXmlExistsFor(string packageName)
    Parameters
    Type Name Description
    System.String packageName

    The name of the package with which to validate the link.xml

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023