![]() |
ezEngine
Release 25.03
|
Stores a list of game objects that should get highlighted by the renderer. More...
#include <Extractor.h>
Public Member Functions | |
void | RemoveDeadObjects (const ezWorld &world) |
void | AddObjectAndChildren (const ezWorld &world, const ezGameObjectHandle &hObject) |
void | AddObjectAndChildren (const ezWorld &world, const ezGameObject *pObject) |
![]() | |
virtual const ezRTTI * | GetDynamicRTTI () const |
bool | IsInstanceOf (const ezRTTI *pType) const |
Returns whether the type of this instance is of the given type or derived from it. | |
template<typename T > | |
EZ_ALWAYS_INLINE bool | IsInstanceOf () const |
Returns whether the type of this instance is of the given type or derived from it. | |
Public Attributes | |
ezDeque< ezGameObjectHandle > | m_Objects |
Additional Inherited Members | |
![]() | |
static const ezRTTI * | GetStaticRTTI () |
Stores a list of game objects that should get highlighted by the renderer.
Store an instance somewhere in your game code: ezSelectedObjectsContext m_SelectedObjects; Add handles to game object that should be get the highlighting outline (as the editor uses for selected objects). On an ezView call: ezView::SetExtractorProperty("HighlightObjects", "SelectionContext", &m_SelectedObjects); The first name must be the name of an ezSelectedObjectsExtractor that is instantiated by the render pipeline.
As long as there is also an ezSelectionHighlightPass in the render pipeline, all objects in this selection will be rendered with an outline.