/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EditorPlugins/Scene/EditorPluginScene/DragDropHandlers/PrefabDragDropHandler.h
16 строк
588 B
Ingrater
Changes to build the Editor with LLVM/Clang (#266)
10 июн 2020, 09:35
Не верифицирован
10 июн 2020, 09:35
315ee12
Код
Авторство
О чём код?
#pragma once #include <EditorFramework/DragDrop/ComponentDragDropHandler.h> class ezPrefabComponentDragDropHandler : public ezComponentDragDropHandler { EZ_ADD_DYNAMIC_REFLECTION(ezPrefabComponentDragDropHandler, ezComponentDragDropHandler); protected: virtual float CanHandle(const ezDragDropInfo* pInfo) const override; virtual void OnDragBegin(const ezDragDropInfo* pInfo) override; virtual void OnDragUpdate(const ezDragDropInfo* pInfo) override; private: void CreatePrefab(const ezVec3& vPosition, const ezUuid& AssetGuid, ezUuid parent, ezInt32 iInsertChildIndex); };