ezEngine  Release 25.03
ezSelectedObjectsContext Class Reference

Stores a list of game objects that should get highlighted by the renderer. More...

#include <Extractor.h>

Inheritance diagram for ezSelectedObjectsContext:

Public Member Functions

void RemoveDeadObjects (const ezWorld &world)
 
void AddObjectAndChildren (const ezWorld &world, const ezGameObjectHandle &hObject)
 
void AddObjectAndChildren (const ezWorld &world, const ezGameObject *pObject)
 
- Public Member Functions inherited from ezReflectedClass
virtual const ezRTTIGetDynamicRTTI () 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< ezGameObjectHandlem_Objects
 

Additional Inherited Members

- Static Public Member Functions inherited from ezNoBase
static const ezRTTIGetStaticRTTI ()
 

Detailed Description

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.


The documentation for this class was generated from the following files: