Navigation
API > API/Plugins > API/Plugins/MassSmartObjects
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- USmartObjectBehaviorDefinition
- USmartObjectMassBehaviorDefinition
References
| Module | MassSmartObjects |
| Header | /Engine/Plugins/Runtime/MassGameplay/Source/MassSmartObjects/Public/MassSmartObjectBehaviorDefinition.h |
| Include | #include "MassSmartObjectBehaviorDefinition.h" |
Syntax
UCLASS&40;EditInlineNew&41;
class USmartObjectMassBehaviorDefinition : public USmartObjectBehaviorDefinition
Remarks
Base class for MassAIBehavior definitions. This is the type of definitions that MassEntity queries will look for. Definition subclass can parameterized its associated behavior by overriding method Activate.
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | UseTime | Indicates the amount of time the Massentity will execute its behavior when reaching the smart object. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Activate
(
FMassCommandBuffer& CommandBuffer, |
This virtual method allows subclasses to configure the MassEntity based on their parameters (e.g. Add fragments) | |
| void | Deactivate
(
FMassCommandBuffer& CommandBuffer, |
This virtual method allows subclasses to update the MassEntity on interaction deactivation (e.g. Remove fragments) |