MaxPower42
(MaxPower42)
February 19, 2016, 7:25pm
1
Ok, so I ran into unresolved references once again. This time I’m trying to use a struct called FAlphaBlend. I need it to write a custom blend-node for the AnimGraph.
I included AlphaBlend.h and checked on the API-website what module I need. As far as I can tell, it should all be in “Engine” which is already in my build.cs file.
Any ideas please?
MaxPower42
(MaxPower42)
February 20, 2016, 6:42am
2
Please help, I’m completely stuck. How can I use FAlphaBlend’s member functions without getting linker errors?
Bino
(Bino)
February 21, 2016, 1:05pm
3
This looks like it’ll be fixed in 4.11
In 4.10 it’s defined like struct FAlphaBlend https://github.com/EpicGames/UnrealEngine/blob/4.10/Engine/Source/Runtime/Engine/Public/AlphaBlend.h
In 4.11 it’s defined like struct ENGINE_API FAlphaBlend https://github.com/EpicGames/UnrealEngine/blob/4.11/Engine/Source/Runtime/Engine/Public/AlphaBlend.h
If you’re working with the source you can add the changes or just wait it out a bit for the 4.11 release.
MaxPower42
(MaxPower42)
February 21, 2016, 2:12pm
4
Thanks a bunch. Self-solving problems are the best
I can work on other things in the meantime.
Does that mean that any engine-struct/class that lacks some kind of API-definition will cause linker errors? Just so I know next time…
Bino
(Bino)
February 21, 2016, 9:10pm
5
No worries! Hope I’m right!. If not let us know.
I believe so. I haven’t done too much with this but I had a same problem a while back.
https://docs.unrealengine.com/latest/INT/Programming/Modules/API/index.html