Can't Set Macro Input Default Value or Set Literal Value in BluePrint

I’ve been trying to set up a Blueprint macro to compare a specific integer in an array as an integer. This value doesn’t change at runtime so I’d just like to enter it in the node on the parent Blueprint, but those boxes don’t seem to appear:

They are there in the standard Compare Int macro:

The suspicious thing I’m seeing is that in the definition of the the standard Compare Int macro there’s an option to expand the input settings where you can enter a default value:

These don’t appear for the inputs in my macro. Not sure if this is related or not.

Has anyone else seen this or have a solution?

Thanks!

Yes, default value is not displayed for this reason.

Your pins are passed “by ref” (diamond), in another macro - “by value” (round).

Until I started checking - no. :laughing:

Blueprint “remembers” the last pin type you selected. The new pin will have this type. Apparently, before this you created a pin “by ref” somewhere, and after that, when adding a pin to a macro - it also becomes “by ref”, but the problem is that macros (for some reason) do not allow you to select the pin type (“by ref” or “by value”).

All you need to do is select the “by value” pin type where available (remove “by ref” flag), and new pins will have that type.

UPD

This is a very old bug

Thanks PREDALIEN so much for the detailed response! I was able to fumble around and get it to work intermittently, but definitely couldn’t work out har was happening. Thought I was losing my mind for a bit!