/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Tools/Libs/ToolsFoundation/VisualGraph/VisualGraphCommentNode.h
20 строк
785 B
wdstudiosma
Add Comment Nodes to all Visual Graphs (#1871)
17 мар 2026, 20:18
Не верифицирован
17 мар 2026, 20:18
1a75abf
Код
Авторство
О чём код?
#pragma once #include <Foundation/Math/Vec2.h> #include <Foundation/Reflection/Reflection.h> #include <ToolsFoundation/ToolsFoundationDLL.h> /// A comment box that can be placed in any visual graph to annotate groups of nodes. /// /// Comments are treated as special nodes by ezVisualGraphObjectManager: they participate in /// position tracking and serialization but have no pins and cannot be connected. /// Their size and color are document properties editable through the property panel. class EZ_TOOLSFOUNDATION_DLL ezVisualGraphComment : public ezReflectedClass { EZ_ADD_DYNAMIC_REFLECTION(ezVisualGraphComment, ezReflectedClass); public: ezString m_sComment = "Comment"; ezVec2 m_vSize = ezVec2(300, 200); ezColorGammaUB m_Color = ezColorGammaUB(70, 70, 70, 200); };