Class LinkXmlGenerator | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    LinkXmlGenerator
    Namespace: UnityEditor.AddressableAssets.Build
    Syntax
    public class LinkXmlGenerator

    Methods

    AddTypes(IEnumerable<Type>)

    Add runtime type to the LinkXml Generator.

    Declaration
    public void AddTypes(IEnumerable<Type> types)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<System.Type> types

    The desired runtime types.

    AddTypes(Type[])

    Add runtime type to the LinkXml Generator.

    Declaration
    public void AddTypes(params Type[] types)
    Parameters
    Type Name Description
    System.Type[] types

    The desired runtime types.

    Save(String)

    Save the LinkXml to the specified path.

    Declaration
    public void Save(string path)
    Parameters
    Type Name Description
    System.String path

    The path to save the linker xml file.

    SetTypeConversion(Type, Type)

    Setup runtime type conversion

    Declaration
    public void SetTypeConversion(Type a, Type b)
    Parameters
    Type Name Description
    System.Type a

    Convert from type.

    System.Type b

    Convert to type.

    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX