UAssetDefinition::CanRegisterStatically

DEVELOPER NOTE: Originally this class was based on the [IAssetTypeActions](API\Developer\AssetTools\IAssetTypeActions) implementation.

Unreal Engine C++ API Reference > Editor > AssetDefinition > UAssetDefinition

References

   
Module AssetDefinition
Header /Engine/Source/Editor/AssetDefinition/Public/AssetDefinition.h
Include #include "AssetDefinition.h"
Source /Engine/Source/Editor/AssetDefinition/Private/AssetDefinition.cpp
virtual bool CanRegisterStatically() const

Remarks

DEVELOPER NOTE: Originally this class was based on the IAssetTypeActions implementation. Several of the functions on there were created organically and added without a larger discussion about if such a thing belonged on those classes.

For example, IAssetTypeActions::ShouldForceWorldCentric was needed for a single asset, but we didn't instead implement GetAssetOpenSupport, which merges the needs of ShouldForceWorldCentric, and SupportsOpenedMethod.

Another example, is IAssetTypeActions::SetSupported and IAssetTypeActions::IsSupported. These were concepts that could have lived in a map on the registry and never needed to be stored on the actual IAssetTypeActions.

So, please do not add new functions to this class if it can be helped. The AssetDefinitions are intended to be a basic low level representation of top level assets for the Content Browser and other editor tools to do some basic interaction with them, or learn some basic common details about them.

If you must add a new function to this class, some requests,

Can it be added as a parameter to an existing Argument struct for an existing function? If so, please do that.

Can it be added as part of the return structure of an existing function? If so, please do that.

If you add a new function, please create a struct for the Args. We'll be able to upgrade things easier. Please continue to use EAssetCommandResult and FAssetSupportResponse, for those kinds of commands.


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library