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"

Get CheckBoxes State from another BP

Hi, I'm new here so please remind me if I did anything wrong. To keep it short: I have 2 BP. The first BP contains a checkbox which I want to see it's state on the second BP. What I want to know is.. How can I use the "Get Checked State" (in the second BP) of the checkbox (which is located in the first BP) so that I can use the checked/unchecked state. I have been reading about "Global Variables" and bla bla but it just like.. I don't know what they are talking about. I'm new here so please show it step-by-step or even with a pictures :)

Cheers, Tenzo

Product Version: UE 4.11
Tags:
more ▼

asked May 28 '16 at 03:22 PM in Blueprint Scripting

avatar image

TenzoNakami
5 2 3

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

1 answer: sort voted first

To acces to antoher blueprint you'll need to use [cast to «your blueprint»] or [get all actor of class]. They are both easy to use, sometime the [cast to «BP»] can be more complicated because you need to reference it to an object.

The Cast will acces to your playerCharacter/playerController/playerStats and other

The Get actor will search an actor in the level, so if you have many actor you'll need to find the good one, everything is in the doc :).

Doc about casting => https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/CastNodes/

doc about get all actor of class => https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/FindingActors/Blueprints/

have a good day!

Gabriel

more ▼

answered May 28 '16 at 04:42 PM

avatar image

Xosh project
351 3 6 15

avatar image TenzoNakami May 29 '16 at 04:30 PM

So, which one do you recommend to be used only to Get a CheckBox state? As far as my observation to both links, using Cast to is the simplest way. Is it true?

avatar image TenzoNakami May 29 '16 at 04:40 PM

EDIT: I just tried my way with Cast to, but I still don't get how it works with a Checkbox. So far I'm using the OnCheckStateChanged > Cast To ... but it doesn't work (Well I can't even wire the output.) Then I tried the Get CheckBox_0 > Cast To ... but it shows me a warning which is Warning '0000 RESOLUTIONS WIDGET' does not inherit from 'Check Box' ( Cast To 0000_RESOLUTIONS_WIDGET would always fail).

avatar image TenzoNakami May 29 '16 at 05:20 PM

EDIT (again): I finally managed to use the Cast To with the Get All Widget of Class (I don't know there actually is one, all I know is the Get All Actor of Class, and that is from your link) and it actually worked! Thanks for the help :)

avatar image Xosh project May 29 '16 at 10:15 PM

I think make cast is more efficiant, But I'm really not sure, I think they do the samething else the cast is for an object like your character/pawn/controller and the get actor is for object in the game (like actor/widget etc).

If you want to use cast, you need to get the good object reference, this is simple but can be hard at first.

I'm happy it helped you :D

(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