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. 

Custom event vs Macro

Hello,after doing some research about macro and custom event,i think that custom event is very similar to Macro and i am confused about the difference between them,do anyone know the difference between them and when should we use them? thanks~

Product Version: Not Selected
Tags:
more ▼

asked Dec 23 '18 at 08:08 AM in Blueprint Scripting

avatar image

runner836223
22 2 4 7

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

1 answer: sort voted first

Custom Events and Macros do look alike but they are implemented differently behind the scenes.

  • A Macro copies all of its content every time it is used while a Custom Event references the same implementation. Think of a website then every time you use a Macro it is a complete duplicate where as a Custom Event is just a hyperlink to the source.

  • Since a Macro is a new Copy every time it is used it bloats the Blueprint with a lot of unnecessary Properties.

  • Derived Blueprints can't reuse a Macro, but they can reuse and override Custom Events.

  • You can't use a latent Macro in a Function (because the Macro can't copy a delay into a function) but you can use a latent Custom Event in a Function (because the Custom Event will manage the delay independently of the Function).

What is the benefit of a Macro then you might ask? Well Blueprint created Custom Events can only have a single Execution pin while a Macro can have many, so in some cases it can be beneficial to use a Macro instead of adding extra Branch and Sequence nodes etc.(note they are also Macros).

more ▼

answered Dec 23 '18 at 05:20 PM

avatar image

GarnerP57
816 3 4 8

avatar image runner836223 Dec 24 '18 at 03:26 PM

thanks for answering,now i understand the difference :)

(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