/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EditorPlugins/Scene/EnginePluginScene/Components/CommentComponent.h
39 строк
1 KB
Jan Krassnigg
Fixed #905: Greybox collision mesh geometry is not exported by prefabs anymore (#908)
27 мар 2023, 14:44
Не верифицирован
27 мар 2023, 14:44
a663618
Код
Авторство
О чём код?
#pragma once #include <Core/World/Component.h> #include <Core/World/ComponentManager.h> #include <EditorEngineProcessFramework/SceneExport/SceneExportModifier.h> using ezCommentComponentManager = ezComponentManager<class ezCommentComponent, ezBlockStorageType::Compact>; /// \brief This component is for adding notes to objects in a scene. /// /// These comments are solely to explain things to other people that look at the scene or prefab structure. /// They are not meant for use at runtime. Therefore, all instances of ezCommentComponent are automatically stripped from a scene during export. class EZ_ENGINEPLUGINSCENE_DLL ezCommentComponent : public ezComponent { EZ_DECLARE_COMPONENT_TYPE(ezCommentComponent, ezComponent, ezCommentComponentManager); ////////////////////////////////////////////////////////////////////////// // ezCommentComponent public: ezCommentComponent(); ~ezCommentComponent(); void SetComment(const char* szText); const char* GetComment() const; private: ezHashedString m_sComment; }; ////////////////////////////////////////////////////////////////////////// class EZ_ENGINEPLUGINSCENE_DLL ezSceneExportModifier_RemoveCommentComponents : public ezSceneExportModifier { EZ_ADD_DYNAMIC_REFLECTION(ezSceneExportModifier_RemoveCommentComponents, ezSceneExportModifier); public: virtual void ModifyWorld(ezWorld& ref_world, ezStringView sDocumentType, const ezUuid& documentGuid, bool bForExport) override; };