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"

Casting to UMG from blueprint class (basics).

Hi guys, I've been stuck for couple of days with this problem, so I had to ask for help.

So I'm trying to understand the basics of bp,umg. I have a sphere dropping to a blueprint class (the_colliding_box). I made it a pawn, but I've tried same thing with an actor.

alt text

The box calculates score, when something collides.

alt text

Then I'm trying to cast to that box from umg. But the score dissapears in game(casting fails).

alt text

But If I possess player 0, score apears on screen, but camera moves.

alt text

I don't know what object to chose when you cast to blueprint class.

Product Version: UE 4.8
scene.jpg (74.6 kB)
box.png (77.0 kB)
casting.jpg (159.2 kB)
screen.png (470.0 kB)
more ▼

asked Jun 17 '15 at 09:13 AM in Blueprint Scripting

avatar image

3 1 2 2

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

1 answer: sort voted first

create a widget wit a text

add the widget in the level BP

and configure you static mech colision i create 2 custom collision

umg score.png (148.1 kB)
add widget.png (140.3 kB)
more ▼

answered Jun 17 '15 at 09:36 AM

avatar image

481 16 12 25

avatar image EvaldasA Jun 17 '15 at 10:44 AM

Thank you!! get all actors of class did the the trick :) I've tried it before but couldn't get anything out of out actors. But now it works :)

(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