danielf94
(danielf94)
1
I have 3 instances and I want to hide 1
example: to delete an instance used Box->RemoveInstance(1);
how can I hide an instance in the same way, for example I want to hide instance “1”??
I can hide it in this way, modifying the scale:
Box->UpdateInstanceTransform(instancia, FTransform(FVector(0, 0, 0)), true, true);
I don’t think setting a material per instance is possible then. Maybe this can help you with what you want to achieve: Customise UVs per instance with Instanced Static Meshes - Rendering - Unreal Engine Forums
danielf94
(danielf94)
3
@erikdubbelboer
virtual void SetMaterial
(
int32 ElementIndex,
UMaterialInterface * Material
)
apparently “Element Index” is for the element to access the material, no to the index of the instance