Hello,
After looking into your issue, the problem here seems to be that you’re looking to a UMaterialInstanceDynamic, but your ChildMaterial is a UMaterialInstance.
ConstructorHelpers::FObjectFinderOptional<UMaterialInstanceDynamic> ChildMaterial;
Based on your screenshot of the Material Instance, it appears that Child Material is a UMaterialInstance, which would be why you are unable to find it when searching for a Dynamic Material Instance.
Think of it like this:
You have an Actor class in your game. You use FObjectFinder to try and find a Pawn class. Your original class is an Actor, and even though Pawn is a subclass, it will not be able to find the parent class.
Based on what I’m seeing here, it would appear that in order to find the MaterialInstanceDynamic, you’d need to first create one and then search for it.
Also, just for reference, here’s our documentation on Material Instances: Instanced Materials | Unreal Engine Documentation
Let me know if that doesn’t make sense or you think it’s not correct, and I’ll be glad to try and provide additional information.
Have a great day