UInstancedStaticMeshComponent::AddInstances

Add multiple instances to this component.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

UInstancedStaticMeshComponent::AddInstances()

UHierarchicalInstancedStaticMeshComponent::AddInstances()

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

Syntax

virtual TArray< int32 > AddInstances
(
    const TArray< FTransform > & InstanceTransforms,
    bool bShouldReturnIndices,
    bool bWorldSpace
)

Remarks

Add multiple instances to this component. Transform is given in local space of this component unless bWorldSpace is set.