Static mesh component object reference is not compatible with Actor Object Reference
Hi, I am just a beginner who try to make a blueprint for a sliding door. But when I try to connect my static mesh SM_Vitre (it means static mesh glasswindow) to a get actor location node it does not work and I have the error message "Static mesh component object reference is not compatible with Actor Object Reference". I have the same problem when I try to connect SM_Vitre to SetActorLocation...
What am I doing wrong ? Thanks for help...
asked Jun 05 '18 at 07:55 PM in Blueprint Scripting
I am not sure, but I think Components don't count as Actors. I think you would have to refer to the Actor the Component is a part of and get the Component from that Actor.
So instead of GetActorLocation node, try GetComponentWorldLocation (it's called something like that I think. I don't have the node names memorized) instead.
answered Jun 07 '18 at 08:49 PM
Thanks a lot for these very clear explanations!
answered Jun 08 '18 at 02:29 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here