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 point to store variable before computation?

HI! I mean this can't be only for convenience purposes, isn't it? For example I have function that receive an argument -CharacterBlueprintReference. I can store it before start computation inside my function. Or I can CastTo and then store my Character. This is useful only to avoid spaghetti in blueprints and dragging wires across all function. Is storing incoming variables necessary for performance? What the purpose? Thanks!

Product Version: UE 4.12
more ▼

asked Jul 08 '16 at 05:51 AM in Blueprint Scripting

avatar image

459 15 13 23

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

1 answer: sort voted first

You only want to store a Variable if you later need to reference it. So if you aren't going to use it? Don't set it. Also try setting Variables as Local Variables where possible in Functions to save unnecessary writes/reads.

However, if you find you have a snakes wedding on your blueprints and you can't clean up with nodes, then setting a variable can help keep it neater but again, I always try not to where possible for optimisation.

more ▼

answered Jul 08 '16 at 07:54 AM

avatar image

134 7 3 8

(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