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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Character Reference is not compatible with My Character Reference

I'm having problemas while trying to create a "Pause" menu. I've created a widget with the "Pause" screen, connected that with MyCharacter, promoting the widget to 2 diferent variables: "ReferenceHUD" and "ReferencePAUASA" as shown in the image below.

alt text

Now in MyController I'm trying to connect a GET MyCharacter variable to those two other variables (Reference HUD and ReferencePAUSA") as to control them from the controller, but I get the message: "Character Reference is not compatible with My Character Reference", as shown below:

alt text

By the way, the ReferenceHUD and ReferencePAUSA nodes only appear if I have the context sensitive option disabled...

Am I missing something? Thanks in advance!

Product Version: UE 4.16
more ▼

asked Dec 02 '18 at 04:04 AM in Blueprint Scripting

avatar image

3 1 2

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

1 answer: sort voted first

the issue your having is that the MyCharacter variable is of type character which does not inherit from the MYCharacter Class (poor naming BTW). so basically your trying to get some variables from a class that doesnt have those variables. its a pretty easy fix though so dont worry. if your MyCharacter variable will always be a reference to a character of the class MyCharacter then just change the variable type to MyCharacter actor reference then you should be good. another way to do basically the same thing would be to cast to the mycharacter class to identify the variables value further. to make a analogy think of it like this your dealing with cars and your trying to get the badge of a mustang but you arent providing a mustang you are just providing car, it could be a jeep, a renault, a model t, or it could just be something that is car like, all you can tell about it is its got four wheels and a engine. hmmm its like your giving a blank which could be any character but hast been given the features yet, but your still trying to get hair color. i hope that makes some sense if not look into inheritance.

so simple answer change your variable type to the right class in the details panel and name your variables as to be more clear (MyCharacter could be MyCharacterReference).

more ▼

answered Dec 02 '18 at 04:58 AM

avatar image

10.1k 33 9 23

avatar image lifrancucci Dec 02 '18 at 03:43 PM

Hi @ThompsonN13. That fixed the problem in a second! This is my first attempt at learning to use UE, so I was pretty lost, but you were very clear. Thanks!

(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