/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EditorPlugins/Scene/EditorPluginScene/InputContexts/SceneSelectionContext.h
16 строк
741 B
Sanakan8472
# Scene Layer Support
26 сен 2021, 18:44
26 сен 2021, 18:44
98809a4
Код
Авторство
О чём код?
#pragma once #include <EditorFramework/InputContexts/SelectionContext.h> /// \brief Custom selection context for the scene to allow switching the active layer if an object is clicked that is in a different layer then the active one. class ezSceneSelectionContext : public ezSelectionContext { public: ezSceneSelectionContext(ezQtEngineDocumentWindow* pOwnerWindow, ezQtEngineViewWidget* pOwnerView, const ezCamera* pCamera); protected: virtual void OpenDocumentForPickedObject(const ezObjectPickingResult& res) const override; virtual void SelectPickedObject(const ezObjectPickingResult& res, bool bToggle, bool bDirect) const override; ezUuid FindLayerByObject(ezUuid objectGuid, const ezDocumentObject*& out_pObject) const; };