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
Inherited Members
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 |