I’ve looked at other questions pertaining to this topic, but they all seem to revolve around FObjectFinder in the constructor. Both my dynamic material and static mesh are being set in blueprints. I need to get that material off of my static mesh component with C++. This is how it’s done in blueprints:
I just need to know what is the C++ equivalent of the above? I’ve tried:
Thanks, but how can I actually see the StaticMeshActor and Component? I have a reference to my actor, but I’m not sure how to get the component. I’ve tried FindComponentByClass and GetComponentByClass like this:
C->FindComponentByClass(UStaticMeshComponent::StaticClass()) but I can’t seem to get the actual component.