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"

Storing Textures and Meshes in Structs

Hello !

It seems to have a bug in the Structure Editor, where we cannot set specific kind of variables in the Default Values editor. All my variables are editable in this Default Values windows, except for Textures2D and StaticMesh. alt text

However, in blueprint I can "Make" my Struct and it will allows properly to modify those values. alt text

Is it a bug, or is it intended?

Product Version: Not Selected
image1.png (89.8 kB)
image2.png (46.4 kB)
more ▼

asked Oct 14 '14 at 11:51 PM in Blueprint Scripting

avatar image

71 2 9 14

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

1 answer: sort voted first

You can't assign default values for certain types of variables in the Structure editor screen. You can do it in blueprints though: if you create a variable (even an array) of that struct, you'll be able to set the default values for the texture and mesh.

more ▼

answered Oct 16 '14 at 04:15 PM

avatar image

2k 62 21 109

avatar image Praglik Oct 16 '14 at 07:20 PM

Thank you, it's a workaround but it doesn't really work as intended... With your solution I cannot implement the struct as a variable in several different blueprints, because it doesn't spread to all blueprint implementing this struct. I will have to set manually the default values in each of those blueprints.

Lots of improvements and fixes were made with Structures with 4.4.X, it would be nice to be able to set any default variable in structs and not being restricted by variable types !

(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