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"

How do I use the custom functions of the actor class in BluePrint?

alt text

I want to use a function from a custom Actor class inside a widget blueprint. However, casting to an actor class causes an error. What's the problem ??

Product Version: UE 4.15
Tags:
1.png (66.4 kB)
more ▼

asked May 23 '17 at 03:02 PM in Using UE4

avatar image

DeltaQ
1 2 2

avatar image Mosel3y May 23 '17 at 04:02 PM

What are you attempting to achieve here?

avatar image DeltaQ May 23 '17 at 04:18 PM

When the button is clicked, invoke the custom function of the actor class.

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

1 answer: sort voted first

Your JsonActor is not a Blueprint class that inherits from Game Mode Base.

You're passing a Game Mode Base (Get Game Mode) to your cast.

more ▼

answered May 23 '17 at 03:20 PM

avatar image

MajinSephiroth
1.2k 31 8 33

avatar image DeltaQ May 23 '17 at 04:38 PM

If so, how do I use the custom function of the Actor class?

avatar image MajinSephiroth May 23 '17 at 07:01 PM

After you spawn your JsonActor, assign it to a variable of type JsonActor reference and use that reference to call your custom function.

(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