Inherits AZ::Component, and AZ::Data::AssetBus::Handler.
|
| AZ_COMPONENT (AzFramework::ScriptComponent, "{8D1BC97E-C55D-4D34-A460-E63C57CD0D4B}", AZ::Component) |
|
AZ::ScriptContext * | GetScriptContext () const |
|
void | SetScriptContext (AZ::ScriptContext *context) |
|
const AZ::Data::Asset< AZ::ScriptAsset > & | GetScript () const |
|
void | SetScript (const AZ::Data::Asset< AZ::ScriptAsset > &script) |
|
AZ::ScriptProperty * | GetScriptProperty (const char *propertyName) |
|
|
static void | Reflect (AZ::ReflectContext *reflection) |
| \red ComponentDescriptor::Reflect
|
|
|
static const char * | DefaultFieldName |
|
|
| ScriptComponent (const ScriptComponent &)=delete |
|
void | Init () override |
|
void | Activate () override |
|
void | Deactivate () override |
|
void | OnAssetReloaded (AZ::Data::Asset< AZ::Data::AssetData > asset) override |
|
bool | LoadInContext () |
| Loads the script into the context/VM,.
|
|
void | CreateEntityTable () |
|
void | DestroyEntityTable () |
|
void | CreatePropertyGroup (const ScriptPropertyGroup &group, int propertyGroupTableIndex, int parentIndex, int metatableIndex, bool isRoot) |
|
|
AZ::ScriptContext * | m_context |
| Context in which the script will be running.
|
|
AZ::ScriptContextId | m_contextId |
| Id of the script context.
|
|
AZ::Data::Asset< AZ::ScriptAsset > | m_script |
| Reference to the script asset used for this component.
|
|
int | m_table |
| Cached table index.
|
|
ScriptPropertyGroup | m_properties |
| List with all properties that were tweaked in the editor and should override values in the m_sourceScriptName class inside m_script.
|
|
|
class | AzToolsFramework::Components::ScriptEditorComponent |
|
◆ LoadInContext()
bool AzFramework::ScriptComponent::LoadInContext |
( |
| ) |
|
|
protected |
Loads the script into the context/VM,.
- Returns
- true if the script is loaded
The documentation for this class was generated from the following file:
- Code/Framework/AzFramework/AzFramework/Script/ScriptComponent.h