Open 3D Engine ScriptCanvasDeveloper Gem 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.
ScriptCanvas::Developer::CreateNodeFromContextMenuState Class Reference

#include <CreateElementsStates.h>

Inherits ScriptCanvas::Developer::NamedAutomationState.

Public Types

enum class  CreationType { ScenePosition , Splice }
 

Public Member Functions

 CreateNodeFromContextMenuState (const QString &nodeName, CreationType creationType, AutomationStateModelId creationDataId, AutomationStateModelId outputId="")
 
- Public Member Functions inherited from ScriptCanvas::Developer::NamedAutomationState
 AZ_TYPE_INFO (NamedAutomationState, "{62DD037C-D80F-4B1B-9F3E-9F05400ABA24}")
 
 NamedAutomationState (const char *name)
 
 NamedAutomationState (const AZStd::string &stateName)
 
int GetStateId () const override
 
- Public Member Functions inherited from ScriptCanvas::Developer::EditorAutomationState
 AZ_TYPE_INFO (EditorAutomationState, "{B18A0531-E3C2-4209-8A9E-1B0195C28443}")
 
 AZ_CLASS_ALLOCATOR (EditorAutomationState, AZ::SystemAllocator)
 
virtual int GetStateId () const =0
 
virtual const char * GetStateName () const =0
 
void SetStateModel (StateModel *stateModel)
 
template<typename T >
void SetModelData (StateModel::DataKey dataKey, const T &modelData)
 
template<typename T >
const T * GetModelData (StateModel::DataKey dataKey)
 
StateModelGetStateModel () const
 
void SetupStateActions (EditorAutomationActionRunner &actionRunner)
 
void StateActionsComplete ()
 
bool HasErrors () const
 
void ReportError (AZStd::string error)
 
const AZStd::string & GetError () const
 

Protected Member Functions

void OnSetupStateActions (EditorAutomationActionRunner &actionRunner) override
 
void OnStateActionsComplete () override
 
- Protected Member Functions inherited from ScriptCanvas::Developer::NamedAutomationState
void SetStateName (const AZStd::string &stateName)
 
const char * GetStateName () const override
 
virtual void OnSetupStateActions (EditorAutomationActionRunner &actionRunner)=0
 
virtual void OnStateActionsComplete ()
 

Additional Inherited Members

- Static Public Attributes inherited from ScriptCanvas::Developer::EditorAutomationState
static constexpr int EXIT_STATE_ID = (-1)
 

Detailed Description

EditorAutomationState that will create the specified node at either the specified point using the context menu, or by splicing it onto a ConnectionId

Member Function Documentation

◆ OnSetupStateActions()

void ScriptCanvas::Developer::CreateNodeFromContextMenuState::OnSetupStateActions ( EditorAutomationActionRunner actionRunner)
overrideprotectedvirtual

◆ OnStateActionsComplete()

void ScriptCanvas::Developer::CreateNodeFromContextMenuState::OnStateActionsComplete ( )
overrideprotectedvirtual

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