Class TypeRegistry | Compositor | 0.8.0-preview.2
docs.unity3d.com
    Show / Hide Table of Contents

    Class TypeRegistry

    Inheritance
    Object
    TypeRegistry
    Namespace: Unity.Compositor
    Syntax
    public sealed class TypeRegistry

    Properties

    Instance

    Declaration
    public static TypeRegistry Instance { get; }
    Property Value
    Type Description
    TypeRegistry

    Methods

    CreateNodeFromHash(NodeSetAPI, Int32)

    This is what is used in Compositor to circumvent the fact that DFG does not allow to call with an unknown type The types need to be registered using RegisterType(String)

    Declaration
    public NodeHandle CreateNodeFromHash(NodeSetAPI set, int hash)
    Parameters
    Type Name Description
    NodeSetAPI set
    Int32 hash
    Returns
    Type Description
    NodeHandle

    RegisterType(String)

    Declaration
    public void RegisterType(string typeToRegister)
    Parameters
    Type Name Description
    String typeToRegister
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023