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"

Setting a variable doesn't work

So I made a function alt textalt text which sets an Integer in another blueprint (a userWidget blueprint class) and it just retains it's default value. I tried it all: I first printed the variable to make sure that it was calculating the correct number and it did, after that I checked my variable to the widget blueprint with isValid which it was and I am pretty sure it is not a replicated variable (since I have to give the function a target for the blueprint) but it is still not working. I'm not really a beginner anymore so I don't know where my mistake is, maybe I made a stupid mistake or something else but any hint is appreciated!
The Variable I am trying to set:alt text

Product Version: UE 4.17
Tags:
more ▼

asked Nov 23 '17 at 09:52 AM in Blueprint Scripting

avatar image

Rising-Mobile
27 1 2 7

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

2 answers: sort voted first

Any further progress on this problem? I've met almost the same set variable problem and yet have no solution.

more ▼

answered Jan 15 '18 at 07:56 AM

avatar image

wzspdw
76 1 6 8

avatar image Rising-Mobile Jan 15 '18 at 01:02 PM

I know that I fixed this problem in the newer version of this project, I am currently in the process of restoring my pc so I dont have the project at the moment, thi I will try to answer you as soon as I can!

avatar image wzspdw Jan 17 '18 at 03:04 PM

Many thx! can wait to see ur solution XD ~~~

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

To answer wzspdw and maybe Rising-Mobile aswell if you never found the answer :)

In the first image you drag a reference of the Slot Cast Ref, this blue line continues on over to the second image where you do Get Class, and then Get Class Defaults. Based on the name I hope you can see for yourself why this does not work and will in fact, do as you said, set the default value. Instead do this, Drag a reference of the Slot Cast Ref, type Get User Widget Object, from this node do a cast to your widget class (cant really see in the picture but I think it says W Inv Slot something). From this cast, drag of a reference from the object and from there you should be able to set the integer.

Hope that helped, I can provide images tomorrow if that helps. Cheers!

more ▼

answered Jan 17 '18 at 11:33 PM

avatar image

Nofyt
408 7 8 10

(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