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"

Text in array - How to get it to work in my project ?


I am need of some aid with creating a dialogue system. I am working on a university project and I am trying to basically create a virtual tour. Person can move around on set areas and click icons to get text info about objects.

Well I been trying to tinker the text section for past week and I am struggling with how I want it / How to get it to work. I have been using the Free Office Blueprint demonstration as base. Basically I am using those text box solutions that work by proximity slightly modified so they are touch and click based.

Now the issue is that I would like to have the text box to have more text than it can so I am trying to figure a solution how I can clear the old text from the textbox and have it display a new text segment.

Basically like clicking trough dialogue in traditional RPG - games.

I was told to attempt it with array but I am still novice with blueprint so I am unsure how to get it to work. Here is my current attempt screenshot as well as an overview

alt text

alt text

In this current version it doesn't show all the lines and it doesn't stretch the box to fit the text. (See result_pic) alt text

In another attempt I managed to get all the text to display but they were on top of each other and went over the border of the box.

Thus any aid how I could sort this or how to proceed - step by step so I might learn it would be appreciated or even proper tutorials of similar dialogue system.

I have been Googling dialogue in Unreal but most seem too complicated for me or half finished solutions thus I havent managed to found aid in those.

Sincerely Ren

Product Version: Not Selected
array_attempt.png (240.6 kB)
overview.png (271.6 kB)
result_pic.png (275.9 kB)
more ▼

asked Nov 01 '14 at 10:28 AM in Blueprint Scripting

avatar image

1 1 4 5

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

1 answer: sort voted first

Well, I'm doing something that changes text. What I did is I first put all of my sentences in an array (Level 1 in the picture). Then I simply "get" whatever sentence I want from the array and set it as another variable called "Current Text". Then I just display Current Text. So you just need an int that cycles through the array whenever you click or whatever. Whenever the "Page Number" int changes, it updates the current text. I'm doing this in UMG however, so I don't know about your case. Worth a shot I think. alt text

currenttext.png (54.5 kB)
more ▼

answered Jan 14 '16 at 07:04 AM

avatar image

10 1 2 4

(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