Context
Users can create InstancedStaticMeshComponent (ISMC) (blueprint) subclasses. Any ISMC class can be added to an actor blueprint. When a mesh is selected and transforms are added to the Instances array, the mesh is instanced and visible at those locations. When editing a blueprint, in the actor viewport (SCS Editor) you can click any instance of an ISMC to select the instance.
Problem
Clicking instances of an ISMC is ineffective when the ISMC class added to the actor blueprint is a user-defined subclass.
Cause
UInstancedStaticMeshComponent and UHierarchicalInstancedStaticMeshComponent use an SCS Editor Customization: a special handler for mouse clicks when the component is clicked in the actor blueprint's viewport. These are registered to those classes explicitly in
FBlueprintEditorModule::StartupModule()
, meaning those customizations don't apply to subclasses of UInstancedStaticMeshComponent:
// Register internal SCS editor customizations RegisterSCSEditorCustomization("InstancedStaticMeshComponent", FSCSEditorCustomizationBuilder::CreateStatic(&FInstancedStaticMeshSCSEditorCustomization::MakeInstance)); RegisterSCSEditorCustomization("HierarchicalInstancedStaticMeshComponent", FSCSEditorCustomizationBuilder::CreateStatic(&FInstancedStaticMeshSCSEditorCustomization::MakeInstance));
FInstancedStaticMeshSCSEditorCustomization::HandleViewportClick is what should handle making instances clickable. This triggers for regular ISMCs but not ISMC subclasses.{}
Impact
Users can create subclasses of ISMC in code and in blueprint. Neither use cases allow you to leverage existing ISMC interaction in the SCS editor. Also, FInstancedStaticMeshSCSEditorCustomization __ is in a private header file, so game module can't even register that class as an SCS editor customization. So as impact:
Suggested Fix
Depends on our intent:
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-348569 in the post.
0 |
Component | UE - Framework - Blueprint Editor |
---|---|
Target Fix | 5.8 |
Created | Oct 13, 2025 |
---|---|
Updated | Oct 13, 2025 |