{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class LinkXmlGenerator | Scriptable Build Pipeline | 2.0.2
docs.unity3d.com
Search Results for

    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
    object
    LinkXmlGenerator
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)