XII Release 0.1.0
Loading...
Searching...
No Matches
xiiDocumentTypeDescriptor Struct Reference
Inheritance diagram for xiiDocumentTypeDescriptor:
[legend]

Public Attributes

xiiString m_sFileExtension
xiiString m_sDocumentTypeName
bool m_bCanCreate = true
xiiString m_sIcon
const xiiRTTI * m_pDocumentType = nullptr
xiiDocumentManager * m_pManager = nullptr
xiiStringView m_sAssetCategory
xiiHybridArray< xiiString, 1 > m_CompatibleTypes

Member Data Documentation

◆ m_CompatibleTypes

xiiHybridArray<xiiString, 1> xiiDocumentTypeDescriptor::m_CompatibleTypes

This list is used to decide which asset types can be picked from the asset browser for a property. The strings are arbitrary and don't need to be registered anywhere else. An asset may be compatible for multiple scenarios, e.g. a skinned mesh may also be used as a static mesh, but not the other way round. In such a case the skinned mesh is set to be compatible to both "CompatibleAsset_Mesh_Static" and "CompatibleAsset_Mesh_Skinned", but the non-skinned mesh only to "CompatibleAsset_Mesh_Static". A component then only needs to specify that it takes an "CompatibleAsset_Mesh_Static" as input, and all asset types that are compatible to that will be browseable.


The documentation for this struct was generated from the following file:
  • /home/runner/work/XII/XII/Source/Tools/Libs/ToolsFoundation/Document/Implementation/Declarations.h