Minor - Improves scene editor and adds audio support - V13.1.0
Improves the scene editor by adding an inspector window to view and modify entity components. Adds audio component support with basic playback controls integrated into the inspector. Adds default audio files.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include <memory>
|
||||
#include <typeindex>
|
||||
#include <typeinfo>
|
||||
#include <imgui.h>
|
||||
|
||||
/**
|
||||
* namespace for the Entity-Component-System (ECS)
|
||||
@@ -45,6 +46,12 @@ public:
|
||||
* @return True if deserialization was successful, otherwise false.
|
||||
*/
|
||||
virtual bool Deserialize(const std::string& data) { return false;}
|
||||
|
||||
/**
|
||||
* Virtual function to render ImGui controls for the component.
|
||||
* This can be overridden by derived components to provide custom UI.
|
||||
*/
|
||||
virtual void OnImGuiRender() { /* Default implementation does nothing */ }
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user