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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Cannot save/load combobox

Hello,

I'm new to UE4(1 week) and I'm having issues with saving and loading a combobox.

SCENARIO:

I have a text_field (HERO_NAME) which I populate and then press a button (CREATE_HERO). This action will populate a combobox (SELECT_HERO). This combobox is disabled if there are no values in it.

I have made 3 functions as seen bellow:

alt text

Now, I've managed to save all the options bellow the GLOBAL varriable by following this tutorial (https://www.youtube.com/watch?v=rbEESQUWgf)

I would like to save the combobox (SELECT_HERO) options in the variable SELECT_HERO_CB when I press the button CREATE_HERO (meaning I add 1 value at a time). Then close the game and reopen. Upon reopen I need to have the SELECT_HERO combobox already populated with the values from previous sessions.

Thank you!

Product Version: UE 4.16
Tags:
savefunctions.png (211.1 kB)
more ▼

asked Jul 15 '17 at 11:27 AM in Blueprint Scripting

avatar image

DesolanceR
16 1 3

avatar image BenVlodgi Jul 16 '17 at 09:15 PM

Are you trying to save the whole combobox or just the index selected?

avatar image DesolanceR Jul 17 '17 at 07:15 AM

I am trying to save the whole combobox( I managed to save the options as a string array an then populate the combobox on load). However I wish to save the combobox as a new combobox object. And on load simply assign the whole combobox (it is going to be filled with objects not with strigs). One object will looke like this (NAME, DIFFICULTY, HERO IDLE ANIM, HERO SAVE FILE)

avatar image BenVlodgi Jul 18 '17 at 10:32 PM

You should have a table of strings to use for your combobox, then just save a list of references to those strings and the index of the selection in the combobox.

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

0 answers: sort voted first
Be the first one to answer this question
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