# \#macro

**URL:** https://forums.unrealengine.com/tag/macro/1268.md

[Latest](https://forums.unrealengine.com/latest.md) · [Categories](https://forums.unrealengine.com/categories.md) · [Tags](https://forums.unrealengine.com/tags.md)

---

## [Empty Value Text in Macros](https://forums.unrealengine.com/t/empty-value-text-in-macros/2005729)

<div class="topic-metadata">

**Author:** [@Weitagon](https://forums.unrealengine.com/u/Weitagon)\
**Replies:** 3\
**Last updated:** [September 5, 2024, 6:03pm UTC](https://forums.unrealengine.com/t/empty-value-text-in-macros/2005729 "2024-09-05T18:03:28Z")

</div>

Hello, Could someone tell me what is going wrong here? I’m trying to make a quick macro in my macro library for my actors to use that can take text and output the correct format. Only my macro library seems to really be…

---

## [UFUNCTION and UPROPERTY macro](https://forums.unrealengine.com/t/ufunction-and-uproperty-macro/1697855)

<div class="topic-metadata">

**Author:** [@blAddddDe](https://forums.unrealengine.com/u/blAddddDe)\
**Replies:** 1\
**Last updated:** [February 19, 2024, 10:19am UTC](https://forums.unrealengine.com/t/ufunction-and-uproperty-macro/1697855 "2024-02-19T10:19:16Z")

</div>

If there are properties or functions that are only used in the .cpp file and not in bluerprint, do you have to make them with macro UFUNCTION or UPROPERTY?

---

## [Declaring a function with c++ macro](https://forums.unrealengine.com/t/declaring-a-function-with-c-macro/1251989)

<div class="topic-metadata">

**Author:** [@Scorch621](https://forums.unrealengine.com/u/Scorch621)\
**Replies:** 2\
**Last updated:** [August 5, 2023, 10:51pm UTC](https://forums.unrealengine.com/t/declaring-a-function-with-c-macro/1251989 "2023-08-05T22:51:09Z")

</div>

I try to declare and define the replication function for GAS attributes with C++ macro. Macro: #define ATTRIBUTE\_REPLICATE\_FUNCTION(PropertyName) \\ virtual void OnRep\_##PropertyName##(const FGameplayAttributeData& OldV…

---

## [Need help with my dialogue system. It works, but I want it everywhere.](https://forums.unrealengine.com/t/need-help-with-my-dialogue-system-it-works-but-i-want-it-everywhere/1145012)

<div class="topic-metadata">

**Author:** [@Blackbirdobyri](https://forums.unrealengine.com/u/Blackbirdobyri)\
**Replies:** 1\
**Last updated:** [April 26, 2023, 3:39pm UTC](https://forums.unrealengine.com/t/need-help-with-my-dialogue-system-it-works-but-i-want-it-everywhere/1145012 "2023-04-26T15:39:33Z")

</div>

Hi there! I made a dialogue system for my game where I can simply write sentences for my NPC’s/The Player in a Macro as seen in the image I added. The macro casts the text to a widget where it changes variables and u…

---

## [In a Level Blueprint, Can You Pass Actors Into a Macro?](https://forums.unrealengine.com/t/in-a-level-blueprint-can-you-pass-actors-into-a-macro/493860)

<div class="topic-metadata">

**Author:** [@Zoey\_222](https://forums.unrealengine.com/u/Zoey_222)\
**Replies:** 3\
**Last updated:** [February 7, 2022, 6:08pm UTC](https://forums.unrealengine.com/t/in-a-level-blueprint-can-you-pass-actors-into-a-macro/493860 "2022-02-07T18:08:13Z")

</div>

Background I have a series of sub-levels that each have unique placements for some actors, but are otherwise identical. Its basically 3 lights, 3 mesh-spawing blueprints, a camera, and a level sequence. Its an “end of …

---

## [What does COREUOBJECT\_API & ENGINE\_API macro?](https://forums.unrealengine.com/t/what-does-coreuobject-api-engine-api-macro/279675)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_82f56b271](https://forums.unrealengine.com/u/anonymous_user_82f56b271)\
**Replies:** 10\
**Last updated:** [November 19, 2021, 7:00am UTC](https://forums.unrealengine.com/t/what-does-coreuobject-api-engine-api-macro/279675 "2021-11-19T07:00:38Z")

</div>

I am new to C++. I see these macros in a lot of places in code, unfortunately either Xcode cannot find their definition or something else is going on. Where are these macros defined and what they do?

---

## [Why is WITH\_EDITOR used in UEdGraphSchema?](https://forums.unrealengine.com/t/why-is-with-editor-used-in-uedgraphschema/485245)

<div class="topic-metadata">

**Author:** [@amoffat](https://forums.unrealengine.com/u/amoffat)\
**Replies:** 0\
**Last updated:** [June 23, 2021, 4:50am UTC](https://forums.unrealengine.com/t/why-is-with-editor-used-in-uedgraphschema/485245 "2021-06-23T04:50:21Z")

</div>

Below is a screenshot from UnrealEngine\\Engine\\Source\\Runtime\\Engine\\Private\\EdGraph\\EdGraphSchema.cpp Why is WITH\_EDITOR used at all in this file? My understanding of the code in EdGraph is that it is only relevant to …

---

## [Problems with Macro Variations displaying properly on some meshes?](https://forums.unrealengine.com/t/problems-with-macro-variations-displaying-properly-on-some-meshes/484093)

<div class="topic-metadata">

**Author:** [@Lewellyn\_Walters](https://forums.unrealengine.com/u/Lewellyn_Walters)\
**Replies:** 0\
**Last updated:** [May 31, 2021, 10:45pm UTC](https://forums.unrealengine.com/t/problems-with-macro-variations-displaying-properly-on-some-meshes/484093 "2021-05-31T22:45:41Z")

</div>

The problem is due to me using Macro Variation. I am using it as part of a world position material. Overall it looks great, however in some places with some meshes it ends suddenly as pictured in the image. Why is this h…

---

## [How to use GetMetaData in game](https://forums.unrealengine.com/t/how-to-use-getmetadata-in-game/423639)

<div class="topic-metadata">

**Author:** [@johnson3d1](https://forums.unrealengine.com/u/johnson3d1)\
**Replies:** 4\
**Last updated:** [December 25, 2020, 9:41am UTC](https://forums.unrealengine.com/t/how-to-use-getmetadata-in-game/423639 "2020-12-25T09:41:23Z")

</div>

I can’t use GetMetaData in DebugGame Configuration,because that macro HACK\_HEADER\_GENERATOR is defined by 0.When i try to add PublicDefinitions.Add(“HACK\_HEADER\_GENERATOR=1”) in Build.cs file.cxx compile will get 2 link …

---

## [Generated\_Body macro showing error](https://forums.unrealengine.com/t/generated-body-macro-showing-error/430917)

<div class="topic-metadata">

**Author:** [@RA\_XtremeGamer](https://forums.unrealengine.com/u/RA_XtremeGamer)\
**Replies:** 5\
**Last updated:** [October 17, 2019, 1:22pm UTC](https://forums.unrealengine.com/t/generated-body-macro-showing-error/430917 "2019-10-17T13:22:24Z")

</div>

In the header file the GENERATED\_BODY() has an error.See the images for more details. I have tried everything - regenerated the project, made a new project, deleted the unreal installation, deleted epic games and install…

---

## [How can i avoid black(dark) spots while using macro texture?](https://forums.unrealengine.com/t/how-can-i-avoid-black-dark-spots-while-using-macro-texture/450379)

<div class="topic-metadata">

**Author:** [@Solo-Paul](https://forums.unrealengine.com/u/Solo-Paul)\
**Replies:** 1\
**Last updated:** [October 11, 2019, 1:01pm UTC](https://forums.unrealengine.com/t/how-can-i-avoid-black-dark-spots-while-using-macro-texture/450379 "2019-10-11T13:01:43Z")

</div>

Hello, i have a material with texture that usually tilling , so i of course used macro texture to combine, but it totally changed the visual style of texture and landscape. Here is an example : Material without macro …

---

## [haven\`t shader macros like Unity in Unreal?](https://forums.unrealengine.com/t/haven-t-shader-macros-like-unity-in-unreal/450583)

<div class="topic-metadata">

**Author:** [@leehwanchoi](https://forums.unrealengine.com/u/leehwanchoi)\
**Replies:** 2\
**Last updated:** [June 13, 2019, 1:13am UTC](https://forums.unrealengine.com/t/haven-t-shader-macros-like-unity-in-unreal/450583 "2019-06-13T01:13:33Z")

</div>

Unity have shader macro like unity\_ObjectToWorld. Not in Unreal? unity\_ObjectToWorld is Scale, Rotation, Translation(Position) float4x4 Matrix Do I need to always calculate the position, rotation, and size of an objec…

---

## [Cannot call Macro Library's macro in Actor Component's BP](https://forums.unrealengine.com/t/cannot-call-macro-librarys-macro-in-actor-components-bp/338987)

<div class="topic-metadata">

**Author:** [@marsonmao](https://forums.unrealengine.com/u/marsonmao)\
**Replies:** 4\
**Last updated:** [March 16, 2019, 9:21am UTC](https://forums.unrealengine.com/t/cannot-call-macro-librarys-macro-in-actor-components-bp/338987 "2019-03-16T09:21:06Z")

</div>

I made a blueprint macro library and a macro, sat GetTestValue(). When I try to call it in an Actor Component derived class’s event graph, I cant find GetTestValue(). But when I try to call it in an Actor derived class…

---

## [THE EMPTY CLASS, inheriting UObject, GENERATED\_BODY macro](https://forums.unrealengine.com/t/the-empty-class-inheriting-uobject-generated-body-macro/443497)

<div class="topic-metadata">

**Author:** [@Jahn.Justin](https://forums.unrealengine.com/u/Jahn.Justin)\
**Replies:** 0\
**Last updated:** [February 16, 2019, 1:33am UTC](https://forums.unrealengine.com/t/the-empty-class-inheriting-uobject-generated-body-macro/443497 "2019-02-16T01:33:54Z")

</div>

Some classes are not showing up in the ‘content browser’ as can be seen in the below images, THE\_EMPTY\_CLASS does not show up in the ‘content browser’. it’s a bug, but someone has said the class needs something. Can some…

---

## [Safely find a reflected property name?](https://forums.unrealengine.com/t/safely-find-a-reflected-property-name/442607)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_8c09e5641](https://forums.unrealengine.com/u/anonymous_user_8c09e5641)\
**Replies:** 1\
**Last updated:** [February 2, 2019, 6:46pm UTC](https://forums.unrealengine.com/t/safely-find-a-reflected-property-name/442607 "2019-02-02T18:46:35Z")

</div>

Hi all… I need to access a UPROPERTY of a UCLASS through reflection in C++. It shouldn’t present any challenge in itself, something along the lines of: MyObject-\>GetClass()-\>FindPropertyByName(TEXT("MyPropertyName")); …

---

## [Infinite loop error on standart Blueprint's macro](https://forums.unrealengine.com/t/infinite-loop-error-on-standart-blueprints-macro/435376)

<div class="topic-metadata">

**Author:** [@HenryVIII](https://forums.unrealengine.com/u/HenryVIII)\
**Replies:** 2\
**Last updated:** [October 10, 2018, 1:43pm UTC](https://forums.unrealengine.com/t/infinite-loop-error-on-standart-blueprints-macro/435376 "2018-10-10T13:43:19Z")

</div>

Hi, this is my AiController Blueprint and after running it I every time get infinite loop error on Do Once nod. I tried to replace Do Once with a branch but it detected infinite loop on set variable node. Sometimes it…

---

## [Notifyの通知設定が上手くいきません](https://forums.unrealengine.com/t/notify/430779)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_158a2937](https://forums.unrealengine.com/u/anonymous_user_158a2937)\
**Replies:** 2\
**Last updated:** [August 2, 2018, 10:23am UTC](https://forums.unrealengine.com/t/notify/430779 "2018-08-02T10:23:00Z")

</div>

初心者で原因が掴めておりません・・・。 コンボ攻撃で攻撃ボタンを押すと、移動値が０になるようにしたく Nofifyでの通知がtrueの時、flootの数値を０にし、MaxWalkSpeedに充てています。 Notifyの設定が上手くいっていないのか、またはマクロ内のGetが上手くいっていのか・・・ どちらが原因かわからない状態ですが、思った様に攻撃中立ち止まってくれません。 アニメーションブループリント内のAnimNotify\_C…

---

## [Visual Studio editor saying 'Macro in Skipped Region'](https://forums.unrealengine.com/t/visual-studio-editor-saying-macro-in-skipped-region/424588)

<div class="topic-metadata">

**Author:** [@anon37657770](https://forums.unrealengine.com/u/anon37657770)\
**Replies:** 6\
**Last updated:** [May 24, 2018, 6:40pm UTC](https://forums.unrealengine.com/t/visual-studio-editor-saying-macro-in-skipped-region/424588 "2018-05-24T18:40:19Z")

</div>

Visual Studio is saying macro in skipped region after a recent update. It didn’t show this message before the update. The code compiles fine but how to remove this error message?

---

## [Local wildcard nodes don't determine types](https://forums.unrealengine.com/t/local-wildcard-nodes-dont-determine-types/416796)

<div class="topic-metadata">

**Author:** [@STeeL835](https://forums.unrealengine.com/u/STeeL835)\
**Replies:** 2\
**Last updated:** [March 13, 2018, 9:53am UTC](https://forums.unrealengine.com/t/local-wildcard-nodes-dont-determine-types/416796 "2018-03-13T09:53:56Z")

</div>

Whatever the type is, local wildcard variable and local wildcard array nodes don’t determine types and compiler throws an error: The type of Variable is undetermined. Connect something to Local Wildcard to imply a speci…

---

## [Macros vs. Functions](https://forums.unrealengine.com/t/macros-vs-functions/319437)

<div class="topic-metadata">

**Author:** [@Raidfire.Net](https://forums.unrealengine.com/u/Raidfire.Net)\
**Replies:** 2\
**Last updated:** [February 21, 2018, 1:51am UTC](https://forums.unrealengine.com/t/macros-vs-functions/319437 "2018-02-21T01:51:23Z")

</div>

Hi folks, please help me understanding what shall i prefer: macros or functions. I have already read this article: link text I am very familiar with macros and functions, but that is the problem :smiley: I can change…

---

## [Local WildCard type won't update](https://forums.unrealengine.com/t/local-wildcard-type-wont-update/405640)

<div class="topic-metadata">

**Author:** [@Jack\_Myth](https://forums.unrealengine.com/u/Jack_Myth)\
**Replies:** 1\
**Last updated:** [January 31, 2018, 4:11pm UTC](https://forums.unrealengine.com/t/local-wildcard-type-wont-update/405640 "2018-01-31T16:11:21Z")

</div>

I meet a problem. when I use Local WildCard note in Macro,I find it’s type won’t update: It cause the blueprint compile error. I can not let it to become any specific type even if connect it to an set note: I fin…

---

## [UProperty wrapped by Marco(#if) doesn't work](https://forums.unrealengine.com/t/uproperty-wrapped-by-marco-if-doesnt-work/381059)

<div class="topic-metadata">

**Author:** [@Tommy\_SS](https://forums.unrealengine.com/u/Tommy_SS)\
**Replies:** 3\
**Last updated:** [December 31, 2017, 4:47am UTC](https://forums.unrealengine.com/t/uproperty-wrapped-by-marco-if-doesnt-work/381059 "2017-12-31T04:47:33Z")

</div>

\#if AAA UPROPERTY(EditDefaultsOnly, Category = Test) float TestPurposeInMarco; #endif The property TestPurposeInMarco is not showed in UnrealEngine blueprints

---

## [マクロへのリファレンス渡しについて](https://forums.unrealengine.com/t/topic/408850)

<div class="topic-metadata">

**Author:** [@fluflu111](https://forums.unrealengine.com/u/fluflu111)\
**Replies:** 0\
**Last updated:** [November 6, 2017, 8:17am UTC](https://forums.unrealengine.com/t/topic/408850 "2017-11-06T08:17:31Z")

</div>

マクロノードへのリファレンス渡しについて質問させていただきたいです。 ブループリントで定義したマクロでは、関数と同じようにインプットする変数に対して、リファレンス渡しが設定できると思います。 そこで、私は次の2つのマクロを作成しました。 この2つのマクロは与えられたInteger型の値に100を足してセットしなおすものです。 上はリファレンス渡しで下は値渡し(便宜上)となっています。 しかし、実際には両方のマクロで…

---

## [\[4.16.1\] Issue with using Enums In Macro's (Bug Report)](https://forums.unrealengine.com/t/4-16-1-issue-with-using-enums-in-macros-bug-report/395742)

<div class="topic-metadata">

**Author:** [@TimSkijwalker](https://forums.unrealengine.com/u/TimSkijwalker)\
**Replies:** 0\
**Last updated:** [June 6, 2017, 1:51pm UTC](https://forums.unrealengine.com/t/4-16-1-issue-with-using-enums-in-macros-bug-report/395742 "2017-06-06T13:51:25Z")

</div>

Hey, I wanted to make this bug report. I am trying to use an enum within a macro but I keep getting compile errors. (It is the proper enum… everything is saved so that shouldn’t be an issue and it works fine in functio…

---

## [Nativization and macro question](https://forums.unrealengine.com/t/nativization-and-macro-question/390177)

<div class="topic-metadata">

**Author:** [@IronicParadox](https://forums.unrealengine.com/u/IronicParadox)\
**Replies:** 2\
**Last updated:** [May 22, 2017, 9:31pm UTC](https://forums.unrealengine.com/t/nativization-and-macro-question/390177 "2017-05-22T21:31:50Z")

</div>

According to the documentation, it says that blueprint macros don’t get nativized. Do they mean blueprint macro libraries or actual macros within a blueprint?

---

## [Is not possible to call a macro library from its parent class?](https://forums.unrealengine.com/t/is-not-possible-to-call-a-macro-library-from-its-parent-class/393738)

<div class="topic-metadata">

**Author:** [@Cucharon](https://forums.unrealengine.com/u/Cucharon)\
**Replies:** 0\
**Last updated:** [May 16, 2017, 9:04am UTC](https://forums.unrealengine.com/t/is-not-possible-to-call-a-macro-library-from-its-parent-class/393738 "2017-05-16T09:04:52Z")

</div>

I created a blueprint named “A” I created a blueprint named “B” that inherits from “A” I created a Macro Library that inherits from “A”, named “MA” I can’t use macros from “MA” inside “A” I can use macros from “MA” i…

---

## [ForLoop not working](https://forums.unrealengine.com/t/forloop-not-working/389808)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_ca0743c9](https://forums.unrealengine.com/u/anonymous_user_ca0743c9)\
**Replies:** 12\
**Last updated:** [April 4, 2017, 9:12am UTC](https://forums.unrealengine.com/t/forloop-not-working/389808 "2017-04-04T09:12:40Z")

</div>

I am using a forloop that has its index connected to a macro I made. The macro then links to a print string. When I run the level, all the prints are based on the last index of the forloop alone. The first index and so …

---

## [\[BUG\] Target array undetermined when using nested Macros with wildcards](https://forums.unrealengine.com/t/bug-target-array-undetermined-when-using-nested-macros-with-wildcards/388017)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_bcd0d281](https://forums.unrealengine.com/u/anonymous_user_bcd0d281)\
**Replies:** 2\
**Last updated:** [March 16, 2017, 9:02pm UTC](https://forums.unrealengine.com/t/bug-target-array-undetermined-when-using-nested-macros-with-wildcards/388017 "2017-03-16T21:02:55Z")

</div>

I was making some Macros with arrays passed in using the Wildcard variable type. All is well until I tried to nest Macros, that is use one Macro inside another. I made a test project to showcase the issue. Here are the …

---

## [Begin Play, Begin Overlap and Tick turning into custom events](https://forums.unrealengine.com/t/begin-play-begin-overlap-and-tick-turning-into-custom-events/386549)

<div class="topic-metadata">

**Author:** [@anonymous\_user\_94f7c721](https://forums.unrealengine.com/u/anonymous_user_94f7c721)\
**Replies:** 2\
**Last updated:** [March 14, 2017, 9:09pm UTC](https://forums.unrealengine.com/t/begin-play-begin-overlap-and-tick-turning-into-custom-events/386549 "2017-03-14T21:09:37Z")

</div>

Something odd is happening and I’m not too sure why. One or more blueprints has an unresolved compiler error, are you sure you want to Play in Editor? DroppedGoldLarge DroppedGoldMedium DroppedGoldSmall …

---

## [Local Array of Wildcards in Macro won't change to type](https://forums.unrealengine.com/t/local-array-of-wildcards-in-macro-wont-change-to-type/383820)

<div class="topic-metadata">

**Author:** [@JBroderick](https://forums.unrealengine.com/u/JBroderick)\
**Replies:** 3\
**Last updated:** [February 27, 2017, 7:53am UTC](https://forums.unrealengine.com/t/local-array-of-wildcards-in-macro-wont-change-to-type/383820 "2017-02-27T07:53:22Z")

</div>

Hi there, I’m having an issue with trying to get a local array of wildcards to switch into the data type I require within a Macro. I’m not sure if this a bug or if I’m doing something wrong but putting it here just incas…

[Next page](https://forums.unrealengine.com/tag/macro/1268.md?match_all_tags=true&page=1&tags%5B%5D=macro)
