Navigation
API > API/Plugins > API/Plugins/InstancedActors > API/Plugins/InstancedActors/UInstancedActorsComponent
References
| Module | InstancedActors |
| Header | /Engine/Plugins/Runtime/InstancedActors/Source/InstancedActors/Public/InstancedActorsComponent.h |
| Include | #include "InstancedActorsComponent.h" |
template<typename FragmentType>
const FragmentType * GetVolatileFragment() const
Remarks
If HasMassEntity(), returns existing FragmentType fragment for this Instanced Actor's Mass Entity, if any. Otherwise returns nullptr.
Note: This is a synchronous call and whilst the returned fragment is guaranteed to be a valid pointer, the fragment may be getting written to by Mass processors on parallel threads, unless they have bRequiresGameThreadExecution = true. Thread-safety in this scenario is left to the caller to either implement thread locking or ensure all processors reading and writing to this fragment have bRequiresGameThreadExecution = true.