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&40;Blueprintable, ClassGroup&61;Gameplay, Meta&61;&40;BlueprintSpawnableComponent&41;, Config&61;Game,
HideCategories&61;&40;Activation, AssetUserData, Collision, Cooking, HLOD, Lighting, LOD, Mobile, Mobility, Navigation, Physics, RayTracing, Rendering, Tags, TextureStreaming&41;&41;
class USmartObjectComponent : public USceneComponent
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bCanBePartOfCollection | Controls whether a given SmartObject can be aggregated in SmartObjectPersistentCollections. | |
| TObjectPtr< USmartObjectDefinition > | DefinitionAsset | ||
| 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 | |
|---|---|---|---|
| bool | |||
| const USmartObjectDefinition * | |||
| FOnSmartObjectChanged & | |||
| FSmartObjectComponentEventNativeSignature & | |||
| FSmartObjectHandle | |||
| ESmartObjectRegistrationType | |||
| FBox | |||
| void | |||
| bool | |||
| void | OnRuntimeEventReceived
(
const FSmartObjectEventData& Event |
||
| void | OnRuntimeInstanceBound
(
FSmartObjectRuntime& RuntimeInstance |
||
| void | OnRuntimeInstanceUnbound
(
FSmartObjectRuntime& RuntimeInstance |
||
| void | ReceiveOnEvent
(
const FSmartObjectEventData& EventData, |
||
| void | |||
| void | SetDefinition
(
USmartObjectDefinition* Definition |
||
| void | SetRegisteredHandle
(
const FSmartObjectHandle Value, |
||
| 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 | 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. |
Typedefs
| Name | Description |
|---|---|
| FOnSmartObjectChanged |
Constants
| Name | Description |
|---|---|
| OnSmartObjectChanged |