Class LinkXmlGenerator
This can be used to create a LinkXml for your build. This will ensure that the desired runtime types are packed into the build.
Inherited Members
Namespace: UnityEditor.Build.Pipeline.Utilities
Assembly: solution.dll
Syntax
public class LinkXmlGenerator
Fields
| Name | Description |
|---|---|
| serializedClassesPerAssembly | Obsolete, no longer does anything. |
Methods
| Name | Description |
|---|---|
| AddAssemblies(IEnumerable<Assembly>) | Add runtime assembly to the LinkXml Generator. |
| AddAssemblies(params Assembly[]) | Add runtime assembly to the LinkXml Generator. |
| AddSerializedClass(IEnumerable<string>) | Add SerializedReference class type from fully qualified name to the Generator, those will end up in PreservedTypes.xml |
| AddTypes(IEnumerable<Type>) | Add runtime type to the LinkXml Generator. |
| AddTypes(params Type[]) | Add runtime type to the LinkXml Generator. |
| CreateDefault() | Constructs and returns a LinkXmlGenerator object that contains default UnityEditor to UnityEngine type conversions. |
| GetEditorTypeConversions() | Returns the set of UnityEditor types that have valid runtime direct mappings. |
| Save(string) | Save the LinkXml to the specified path. |
| SetTypeConversion(Type, Type) | Setup runtime type conversion |