ezEngine  Release 25.03
ezFileBrowserAttribute Class Reference

A property attribute that indicates that the string property should display a file browsing button. More...

#include <PropertyAttributes.h>

Inheritance diagram for ezFileBrowserAttribute:

Public Member Functions

 ezFileBrowserAttribute (ezStringView sDialogTitle, ezStringView sTypeFilter, ezStringView sCustomAction={}, ezStringView sCreateTitle={}, ezBitflags< ezDependencyFlags > depencyFlags=ezDependencyFlags::Transform|ezDependencyFlags::Thumbnail)
 
ezStringView GetDialogTitle () const
 
ezStringView GetTypeFilter () const
 
ezStringView GetCustomAction () const
 
ezStringView GetCreateTitle () const
 
ezBitflags< ezDependencyFlagsGetDependencyFlags () const
 
- Public Member Functions inherited from ezReflectedClass
virtual const ezRTTIGetDynamicRTTI () const
 
bool IsInstanceOf (const ezRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T >
EZ_ALWAYS_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.
 

Static Public Attributes

static constexpr ezStringView Meshes = "*.obj;*.fbx;*.gltf;*.glb"_ezsv
 
static constexpr ezStringView MeshesWithAnimations = "*.fbx;*.gltf;*.glb"_ezsv
 
static constexpr ezStringView ImagesLdrOnly = "*.dds;*.tga;*.png;*.jpg;*.jpeg"_ezsv
 
static constexpr ezStringView ImagesHdrOnly = "*.hdr;*.exr"_ezsv
 
static constexpr ezStringView ImagesLdrAndHdr = "*.dds;*.tga;*.png;*.jpg;*.jpeg;*.hdr;*.exr"_ezsv
 
static constexpr ezStringView CubemapsLdrAndHdr = "*.dds;*.hdr"_ezsv
 

Additional Inherited Members

- Static Public Member Functions inherited from ezNoBase
static const ezRTTIGetStaticRTTI ()
 

Detailed Description

A property attribute that indicates that the string property should display a file browsing button.

Allows to specify the title for the browse dialog and the allowed file types. Usage: EZ_MEMBER_PROPERTY("File", m_sFilePath)->AddAttributes(new ezFileBrowserAttribute("Choose a File", "*.txt")),


The documentation for this class was generated from the following file: