Navigation
API > API/Runtime > API/Runtime/MovieSceneTracks > API/Runtime/MovieSceneTracks/Bindings
Inheritance Hierarchy
- UMovieSceneSpawnableBindingBase
- UMovieSceneSpawnableActorBindingBase
- UMovieSceneSpawnableActorBinding
References
| Module | MovieSceneTracks |
| Header | /Engine/Source/Runtime/MovieSceneTracks/Public/Bindings/MovieSceneSpawnableActorBinding.h |
| Include | #include "Bindings/MovieSceneSpawnableActorBinding.h" |
Syntax
UCLASS (Abstract, MinimalAPI)
class UMovieSceneSpawnableActorBindingBase : public UMovieSceneSpawnableBindingBase
Remarks
The base class for actor-specific spawnable bindings. Contains a default implementation that can handle spawning an Actor from provided Actor class and optional Actor template. Can be overridden in C++ or blueprint to provide an Actor class and to add custom PostSpawnObject behavior such as mesh setup based on an asset. The below UMovieSceneSpawnableActorBinding class implements this base class and replicates the old FMovieSceneSpawnable behavior by using a specified Actor template to spawn an Actor and can be used out of the box.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bNetAddressableName | When enabled, the actor will be spawned with a unique name so that it can be addressable between clients and servers. | |
| FName | LevelName | Name of level to spawn into |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Automatically determine a value for bNetAddressableName based on the spawnable type | ||
| void | CopyObjectTemplate
(
UObject* InSourceObject, |
Copy the specified object into this spawnable's template | |
| void | DestroySpawnedObjectInternal
(
UObject* Object |
Overridden to handle Actor-specific destruction | |
| TSubclassOf< AActor > | TODO: Make UFUNCTION. | ||
| AActor * | Optionally override to provide an Actor template to use during Spawn | ||
| UClass * | |||
| int32 | MovieSceneCustomBinding overrides | ||
| FName | GetLevelName () |
Returns the optional level name to spawn the actor in, otherwise the Persistent level is used. | |
| UObject * | Override and return the object template if the binding type supports object templates | ||
| FName | GetSpawnName
(
const FGuid& BindingId, |
||
| FTransform | Returns the transform to spawn the actor at | ||
| void | SetLevelName
(
FName InLevelName |
Used to provide an optional level name to spawn the actor in, otherwise the Persistent level is used. | |
| void | SetObjectTemplate
(
UObject* InObjectTemplate |
Sets the object template to the specified object directly. | |
| UObject * | SpawnObjectInternal
(
UWorld* WorldContext, |
Overridden to handle Actor-specific spawning | |
| bool | Override and return true if the binding type supports object templates. |