Use pre-created actor with component
Add component to your actor in BP
Use one of this:
- Attach component to actor in component tree
- Spawn during runtime: Search for "Spawn From Class"
- Promote object to variable to keep it alive
- This is only required to keep object alive during gameplay and prevent UE from destroying it.
Use in C++
To access Spline Meshed component or class:
It is UObject, so it must comply with unreal engine rules for objects lifecycle. Store ref value as any UObject if you want it to persist in game for longer.
UPROPERTY()
Core component that handles meshes spawning along spline.
Definition SplineMeshedComponent.h:636
Classes hierarchy
Core component:
Classes:
Extending functionality
Class has exposed function to use and override modification of every mesh for custom desire.
- Create child class of any component:
- Override function OnMeshSpawn (for spawn customization)
- Override function Detection (for collision detection)
Customizing pipeline
All functions useful for creating custom pipeline are exposed for Blueprint.
Spline function list: USplineMeshedComponent