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"

What is the proper procedure with editing a Struct?

It seems like half the time I edit a Struct after I've already implemented it within my BP that something goes wonky. One example that just happened, I went to edit a Struct with 2 elements. The editor crashed. I boot back up and a different Struct with 10 elements (in the same BP) had 5 separate instances of being disconnected. I reconnected all nodes. Ran my project, had issues and then closed the editor. Reopened and the same nodes were all disconnected again. (I've had disconnecting nodes upon launching my project before, so this is not the first time.)

After all that I right clicked and hit 'Refresh Nodes' on all the ones with issues and they no longer broke upon opening the editor.

So the real question is: What procedures should I follow when editing a Struct? Should I even edit them once implemented? Is this behavior unintentional or is some kind of bug within the editor?

Thanks for any feedback and answers.

Product Version: UE 4.14
more ▼

asked Feb 12 '17 at 12:21 AM in Using UE4

avatar image

6 1 2

avatar image willrmiller Feb 12 '17 at 12:36 AM

Are your structs defined in C++ or Blueprint?

avatar image Subtervotion Feb 12 '17 at 02:37 PM

Blueprints only. Haven't gotten into C++ because I don't know much about coding and the game is relatively simple.

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

1 answer: sort voted first

Ive had issues with structs in BP so I try to keep them as flat and simple as possible compared to how I used to work in UScript. Ive found having structs nested in other structs can be fragile as theres no way to set the correct compile order if the editor gets it wrong. Atleast in my experience with BP that seems to be one of the causes of alot of issues is that its trying to compile things out of order which causes it to crash.

Its difficult to know without seeing exactly what it is youre doing, 10 elements could mean anything which leaves alot of room to not be able to reproduce it.

The ideal situation is that you dont edit structs too much once they are created and you start using them, there are instances where editing a variable type once its being used extensively causes a similar type of crash.

If you do need more stability of editing structs you can use C++ but it requires you to restart the editor alot, I do recommend working on paper and really nailing down your data structures as much as you can first and if you need updates create a new data structure to replace the old one entirely. It does create abit of rework but it seems to be far more stable to do it that way then trying to modify types which touch alot of functionality.

more ▼

answered Feb 12 '17 at 07:34 AM

avatar image

1k 37 12 38

avatar image Subtervotion Feb 12 '17 at 02:38 PM

Thanks for your thoughts. I've been thinking that the solution really is to just create a new Struct.

(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