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"

Editor Widget : communication

How to modify default variable value in blueprint class (GameInstance for example) from an editor widget ?

Try to have reference to an asset, but cast failed because i'm in editor (not play). alt text

Product Version: UE 4.22
more ▼

asked Apr 18 '19 at 01:43 AM in Blueprint Scripting

avatar image

152 9 13 19

avatar image martoof Jun 29 '19 at 06:02 PM

up! please

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

1 answer: sort voted first

From what I can make out (the screen shot is very small), you are casting a "Load Asset" to a "Game Instance". They are not the same type and that is why it fails. You need to use "Get Game Instance" node to cast to the game instance. If you need help with casting and references check out video #1 (Casting) and #25 (Creating References) to get an idea of what I mean.


more ▼

answered Apr 18 '19 at 12:19 PM

avatar image

Nebula Games Inc
5.4k 28 9 15

avatar image martoof Apr 18 '19 at 03:26 PM

Thanks for comment but i'm not in a "Widget class" but in an "Editor Widget" (new feature 4.22). So the "GetGameInstance" can't work because it doesn't exist in editor (i'm not in play mode). --> What I want is to modify variable inside an asset.

PS : you can show screenshot full size with right clic ;)

avatar image Nebula Games Inc Apr 18 '19 at 03:51 PM

Hmm, didn't know they made a new widget type in 4.22.... can't help you there since I'm not familiar

(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