Navigation
API > API/Plugins > API/Plugins/SmartObjectsModule
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- USmartObjectComponent
References
| Module | SmartObjectsModule |
| Header | /Engine/Plugins/Runtime/SmartObjects/Source/SmartObjectsModule/Public/SmartObjectComponent.h |
| Include | #include "SmartObjectComponent.h" |
Syntax
UCLASS (Blueprintable, ClassGroup=Gameplay, Meta=(BlueprintSpawnableComponent), Config=Game,
HideCategories=(Activation, AssetUserData, Collision, Cooking, HLOD, Lighting, LOD, Mobile, Mobility, Navigation, Physics, RayTracing, Rendering, Tags, TextureStreaming))
class USmartObjectComponent : public USceneComponent
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bCanBePartOfCollection | Controls whether a given SmartObject can be aggregated in SmartObjectPersistentCollections. | |
| FSmartObjectDefinitionReference | DefinitionRef | Reference to Smart Object Definition Asset with parameters. | |
| FDelegateHandle | EventDelegateHandle | ||
| friend | FSmartObjectComponentInstanceData | ||
| FSmartObjectComponentEventSignature | OnSmartObjectEvent | ||
| FSmartObjectComponentEventNativeSignature | OnSmartObjectEventNative | Native version of OnSmartObjectEvent. | |
| FSmartObjectHandle | RegisteredHandle | RegisteredHandle != FSmartObjectHandle::Invalid when registered into a collection by SmartObjectSubsystem | |
| ESmartObjectRegistrationType | RegistrationType |
Constructors
| Type | Name | Description | |
|---|---|---|---|
USmartObjectComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| const USmartObjectDefinition * | |||
| bool | |||
| const USmartObjectDefinition * | |||
| FOnSmartObjectChanged & | |||
| FSmartObjectComponentEventNativeSignature & | |||
| FSmartObjectHandle | |||
| ESmartObjectRegistrationType | |||
| FBox | |||
| void | |||
| bool | Returns true if the Smart Object component is registered to the Smart Object subsystem. | ||
| bool | Returns the enabled state of the smart object regardless of the disabled reason. | ||
| bool | IsSmartObjectEnabledForReason
(
FGameplayTag ReasonTag |
Returns the enabled state of the smart object based on a specific reason. | |
| void | OnRuntimeEventReceived
(
const FSmartObjectEventData& Event |
||
| void | OnRuntimeInstanceBound
(
FSmartObjectRuntime& RuntimeInstance |
||
| void | OnRuntimeInstanceUnbound
(
FSmartObjectRuntime& RuntimeInstance |
||
| void | ReceiveOnEvent
(
const FSmartObjectEventData& EventData, |
||
| void | |||
| void | SetDefinition
(
USmartObjectDefinition* DefinitionAsset |
Sets the Smart Object Definition. | |
| void | SetRegisteredHandle
(
const FSmartObjectHandle Value, |
||
| bool | SetSmartObjectEnabled
(
const bool bEnable |
Enables or disables the smart object using the default reason (i.e. Gameplay). | |
| bool | SetSmartObjectEnabledForReason
(
FGameplayTag ReasonTag, |
Enables or disables the smart object for the specified reason. | |
| void | UnregisterFromSubsystem
(
const ESmartObjectUnregistrationType UnregistrationType |
Overridden from UActorComponent
| Type | Name | Description | |
|---|---|---|---|
| void | BeginPlay () |
Begins Play for the component. | |
| void | EndPlay
(
const EEndPlayReason::Type EndPlayReason |
Ends gameplay for this component. | |
| TStructOnScope< FActorComponentInstanceData > | Called before we throw away components during RerunConstructionScripts, to cache any data we wish to persist across that operation | ||
| void | OnRegister () |
Called when a component is registered, after Scene is set, but before CreateRenderState_Concurrent or OnCreatePhysicsState are called. | |
| void | OnUnregister () |
Called when a component is unregistered. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | GetLifetimeReplicatedProps
(
TArray< FLifetimeProperty >& OutLifetimeProps |
Returns properties that are replicated for the lifetime of the actor channel | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | PostEditUndo () |
Called after applying a transaction to the object. | |
| void | Called after the C++ constructor and after the properties have been initialized, including those loaded from config. | ||
| void | Handles reading, writing, and reference collecting using FArchive. |
Typedefs
| Name | Description |
|---|---|
| FOnSmartObjectChanged |
Constants
| Name | Description |
|---|---|
| OnSmartObjectChanged |