Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UInstancedStaticMeshComponent
- UInstancedStaticMeshComponent::AddInstance()
- UHierarchicalInstancedStaticMeshComponent::AddInstance()
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/InstancedStaticMeshComponent.h |
| Include | #include "Components/InstancedStaticMeshComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/InstancedStaticMesh.cpp |
UFUNCTION (BlueprintCallable, Category="Components|InstancedStaticMesh")
virtual int32 AddInstance
(
const FTransform & InstanceTransform,
bool bWorldSpace
)
Remarks
Add an instance to this component. Transform is given in local space of this component unless bWorldSpace is set.