/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/EditorPlugins/Assets/EditorPluginAssets/AnimationClipAsset/AnimationClipActions.h
40 строк
1008 B
Jan Krassnigg
Added option to extract root motion of animation clips from feet joints (#1518)
08 апр 2025, 21:13
Не верифицирован
08 апр 2025, 21:13
9b61102
Код
Авторство
О чём код?
#pragma once #include <EditorFramework/Assets/AssetDocument.h> #include <EditorFramework/EditorFrameworkDLL.h> #include <GuiFoundation/Action/BaseActions.h> #include <GuiFoundation/GuiFoundationDLL.h> class ezQtAnimationClipAssetDocumentWindow; class ezAnimationClipActions { public: static void RegisterActions(); static void UnregisterActions(); static void MapActions(ezStringView sActionMap, ezStringView sSubPath); static ezActionDescriptorHandle s_hCategory; static ezActionDescriptorHandle s_hRootMotionFromFeet; }; class ezAnimationClipAction : public ezButtonAction { EZ_ADD_DYNAMIC_REFLECTION(ezAnimationClipAction, ezButtonAction); public: enum class ActionType { RootMotionFromFeet, }; ezAnimationClipAction(const ezActionContext& context, const char* szName, ActionType type); ~ezAnimationClipAction(); virtual void Execute(const ezVariant& value) override; private: ezQtAnimationClipAssetDocumentWindow* m_pAssetWindow = nullptr; ActionType m_Type; };