Open 3D Engine AzToolsFramework API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzToolsFramework::ComponentModeFramework::ComponentModeSystemRequests Class Referenceabstract

Bus to control the overall editor ComponentMode state. More...

#include <EditorComponentModeBus.h>

Inherits AZ::EBusTraits.

Public Member Functions

virtual void BeginComponentMode (const AZStd::vector< EntityAndComponentModeBuilders > &entityAndComponentModeBuilders)=0
 Move the Editor into ComponentMode with a list of Entities and their individual ComponentModes.
 
virtual void AddComponentModes (const EntityAndComponentModeBuilders &entityAndComponentModeBuilders)=0
 Add an Entity and its ComponentModes to an existing or starting up ComponentMode.
 
virtual void EndComponentMode ()=0
 One single way to leave ComponentMode, will move Editor out of ComponentMode.
 
virtual bool InComponentMode ()=0
 Is the Editor currently in ComponentMode or not.
 
virtual void Refresh (const AZ::EntityComponentIdPair &entityComponentIdPair)=0
 
virtual bool AddedToComponentMode (const AZ::EntityComponentIdPair &entityComponentIdPair, const AZ::Uuid &componentType)=0
 
virtual void AddSelectedComponentModesOfType (const AZ::Uuid &componentType)=0
 
virtual void ChangeComponentMode (const AZ::Uuid &componentType)=0
 Switches to the ComponentMode of input component type immediately.
 
virtual bool SelectNextActiveComponentMode ()=0
 
virtual bool SelectPreviousActiveComponentMode ()=0
 
virtual bool SelectActiveComponentMode (const AZ::Uuid &componentType)=0
 
virtual AZ::Uuid ActiveComponentMode ()=0
 Return the Uuid of the Component Type that is currently active in Component Mode.
 
virtual bool ComponentModeInstantiated (const AZ::EntityComponentIdPair &entityComponentIdPair)=0
 Return if the ComponentMode for this specific Entity/Component pair is instantiated.
 
virtual bool HasMultipleComponentTypes ()=0
 
virtual void RefreshActions ()=0
 Refresh Actions (shortcuts) for the 'selected' ComponentMode.
 

Detailed Description

Bus to control the overall editor ComponentMode state.

Member Function Documentation

◆ AddedToComponentMode()

virtual bool AzToolsFramework::ComponentModeFramework::ComponentModeSystemRequests::AddedToComponentMode ( const AZ::EntityComponentIdPair &  entityComponentIdPair,
const AZ::Uuid &  componentType 
)
pure virtual

Is this Component type on this entity currently participating in the Editor ComponentMode.

◆ AddSelectedComponentModesOfType()

virtual void AzToolsFramework::ComponentModeFramework::ComponentModeSystemRequests::AddSelectedComponentModesOfType ( const AZ::Uuid &  componentType)
pure virtual

If the user has a multiple selection where each entity in the selection has the same Component on it, move all Components into ComponentMode.

◆ HasMultipleComponentTypes()

virtual bool AzToolsFramework::ComponentModeFramework::ComponentModeSystemRequests::HasMultipleComponentTypes ( )
pure virtual

Return if there are more than one Component type in Component Mode. There may be two dependent Component Modes that are not 'active' at the same time but can be switched between in a Component Mode session (e.g. Tube and Spline Components).

◆ Refresh()

virtual void AzToolsFramework::ComponentModeFramework::ComponentModeSystemRequests::Refresh ( const AZ::EntityComponentIdPair &  entityComponentIdPair)
pure virtual

If something about the Component/Entity has changed, Refresh can be used to update Manipulator positions etc.

◆ SelectActiveComponentMode()

virtual bool AzToolsFramework::ComponentModeFramework::ComponentModeSystemRequests::SelectActiveComponentMode ( const AZ::Uuid &  componentType)
pure virtual

Pick a specific ComponentMode for a Component (by directly selecting a Component in the EntityInspector - it is now 'selected'). Return true if the mode actually changed - the mode will not change if the componentType requested is the same as the current one.

◆ SelectNextActiveComponentMode()

virtual bool AzToolsFramework::ComponentModeFramework::ComponentModeSystemRequests::SelectNextActiveComponentMode ( )
pure virtual

Move to the next active ComponentMode so the Actions for that mode become available (it is now 'selected'). Return true if the mode actually changed - the mode will not change if the componentType requested is the same as the current one.

◆ SelectPreviousActiveComponentMode()

virtual bool AzToolsFramework::ComponentModeFramework::ComponentModeSystemRequests::SelectPreviousActiveComponentMode ( )
pure virtual

Move to the previous active ComponentMode so the Actions for that mode become available (it is now 'selected'). Return true if the mode actually changed - the mode will not change if the componentType requested is the same as the current one.


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