IMetasoundUObjectRegistry::GetObjectAsAssetBase

Returns casts the [UObject](API\Runtime\CoreUObject\UObject\UObject) to a [FMetasoundAssetBase](API\Plugins\MetasoundFrontend\FMetasoundAssetBase) if the [UObject](API\Runtime\CoreUObject\UObject\UObject) is of a registered type.

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

FMetasoundAssetBase * GetObjectAsAssetBase
(
    UObject * InObject
) const

Remarks

Returns casts the UObject to a FMetasoundAssetBase if the UObject is of a registered type. If the UObject's UClass is not registered, then a nullptr is returned.