Navigation
API > API/Plugins > API/Plugins/MassSmartObjects
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.
| Name | USmartObjectMassBehaviorDefinition |
| Type | class |
| Header File | /Engine/Plugins/Runtime/MassGameplay/Source/MassSmartObjects/Public/MassSmartObjectBehaviorDefinition.h |
| Include Path | #include "MassSmartObjectBehaviorDefinition.h" |
Syntax
UCLASS (MinimalAPI, EditInlineNew)
class USmartObjectMassBehaviorDefinition : public USmartObjectBehaviorDefinition
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USmartObjectBehaviorDefinition → USmartObjectMassBehaviorDefinition
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| UseTime | float | Indicates the amount of time the Massentity will execute its behavior when reaching the smart object. | MassSmartObjectBehaviorDefinition.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Activate
(
FMassCommandBuffer& CommandBuffer, |
This virtual method allows subclasses to configure the MassEntity based on their parameters (e.g. Add fragments) | MassSmartObjectBehaviorDefinition.h | |
virtual void Deactivate
(
FMassCommandBuffer& CommandBuffer, |
This virtual method allows subclasses to update the MassEntity on interaction deactivation (e.g. Remove fragments) | MassSmartObjectBehaviorDefinition.h |