IMetasoundUObjectRegistry::NewObject

Creates a new object from a MetaSound document.

Choose your operating system:

Windows

macOS

Linux

References

Module

MetasoundEngine

Header

/Engine/Plugins/Runtime/Metasound/Source/MetasoundEngine/Public/MetasoundUObjectRegistry.h

Include

#include "MetasoundUObjectRegistry.h"

Syntax

UObject * NewObject
(
    UClass * InClass,
    const FMetasoundFrontendDocument & InDocument,
    const FString & InPath
) const

Remarks

Creates a new object from a MetaSound document.

Returns

A new object. A nullptr on error.

Parameters

Parameter

Description

InClass

A registered UClass to create.

InDocument

The FMetasoundFrontendDocument to use when creating the class.

InInterfaceVersion

The version of the FMetasoundFrontendClassInterface to use when creating the class.

InPath

If in editor, the created asset will be stored at this content path.