Classes

GraphicsAssets

Brief descriptions

Detailed information

GraphicsAssetViewFactory

engine/core/modules/graphics_assets/include/graphics_assets/asset_view_factory.h

class GraphicsAssetViewFactory : public nau::IAssetViewFactory

Public Functions

GraphicsAssetViewFactory() = default

Private Functions

virtual eastl::vector<const rtti::TypeInfo*> getAssetViewTypes() const override

Retrieves a collection of all available asset view types for this factory.

Returns:

A collection of all available asset view types.

virtual async::Task<IAssetView::Ptr> createAssetView(nau::Ptr<> accessor, const rtti::TypeInfo &viewType) override

Schedules asset view creation operation.

Parameters:
  • accessor[in] A pointer to the object (depending on the asset type) containing the asset data.

  • viewType[in] Type of the asset to create the view of.

Returns:

Task object providing the operation status as well as access to the created asset view.