x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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... alt text

What am I doing wrong ? Thanks for help...

Product Version: UE 4.19
Tags:
more ▼

asked Jun 05 '18 at 07:55 PM in Blueprint Scripting

avatar image

dedouille
6 1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

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.

more ▼

answered Jun 07 '18 at 08:49 PM

avatar image

mightyenigma
3.8k 18 23 20

avatar image ThompsonN13 Jun 07 '18 at 10:08 PM

components are not actors they are pieces of an actor. if you add a static mesh into your scene directly it gets the actor functionality added to it so it becomes an actor, i think of it working like encapsulation.

anyways to solve your issue you need to use either the set world location or set relative location node. you can get nodes like this by dragging off of the component and searching for get location, the context sensitivity will find you only nodes that can be connected. personally ii would go with a relative location if you have a set amount that you want the door to move since its easier to define its movement in local space rather than world space. the below picture shows how to set this up using the relative location. i also show the setworldlocation node as well. note however in the example that the door mesh cant be the root component, instead use a scene component or something that wont be moving as the root.

alt text

capture.png (268.8 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Thanks a lot for these very clear explanations!

more ▼

answered Jun 08 '18 at 02:29 PM

avatar image

dedouille
6 1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question