unreal.ContentBrowserAssetContextMenuContext
¶
- class unreal.ContentBrowserAssetContextMenuContext(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
Object
Content Browser Asset Context Menu Context
C++ Source:
Module: ContentBrowser
File: ContentBrowserMenuContexts.h
Editor Properties: (see get_editor_property/set_editor_property)
contains_unsupported_assets
(bool): [Read-Write]selected_assets
(Array[AssetData]): [Read-Write] The currently selected assets in the content browser.
- get_selected_objects() → Array[Object]¶
UE_DEPRECATED(5.2, “GetSelectedObjects has been deprecated. We no longer automatically load assets on right click. Please use SelectedAssets and determine whatever you need for your context menu options without actually loading the assets. When you finally need all or a subset of the selected assets use LoadSelectedAssets or LoadSelectedAssetsIf”) deprecated: GetSelectedObjects has been deprecated. We no longer automatically load assets on right click. If you can work without loading the assets, please use SelectedAssets. Otherwise call LoadSelectedObjects
- load_selected_objects(load_tags) → Array[Object]¶
Loads all the selected assets and returns an array of the objects.
- load_selected_objects_if_needed() → Array[Object]¶
Loads the selected assets (if needed) which is based on AssetViewUtils::LoadAssetsIfNeeded, this exists primarily for backwards compatability. Reliance on a black box to determine ‘neededness’ is not recommended, this function will likely be deprecated a few versions after GetSelectedObjects.