Per Instance custom data inside of material

AddInstance2 does not show up in my blueprint. I can only find the default “Add Instance” function. Maybe Unreal does not accept changes in the core files. For Unreal Editor 4.22.2 this tutorial does not work for me.

Edit: Ok, now I have rebuilt my whole project and everything succeeded, but in my blueprints I can still not find my modified function. Other functions that I have defined outside of the engine folder are available for me in the blueprint. I just cannot get the engine file changes to work, even though the builds have not errors.