docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UserDefinedTemplates

    UserDefinedTemplates is used to add custom templates to the code-generation system. Add a partial class definition to an AssemblyDefinitionReference (.asmref) referencing Unity.NetCode, implement the RegisterTemplates(List<TypeRegistryEntry>, string) method by adding your new typesto the templates list.

    Inheritance
    object
    UserDefinedTemplates
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.NetCode.Generators
    Assembly: Unity.NetCode.dll
    Syntax
    public static class UserDefinedTemplates
    In This Article
    Back to top
    Copyright © 2025 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)