MakeLiteralInt Question and Error
What exactly are literal ints and how are they used? An example would really help.
I also get an error whenever I try to call the MakeLiteralInt function.
This is the include in my source file for the function:
This is my code in the source file:
This is my error message:
Error 20 error LNK2019: unresolved external symbol "public: static int __cdecl UKismetSystemLibrary::MakeLiteralInt(int)" (?MakeLiteralInt@UKismetSystemLibrary@@SAHH@Z) referenced in function "public: __cdecl AIntroToProgCharacter::AIntroToProgCharacter(class FObjectInitializer const &)" (??0AIntroToProgCharacter@@QEAA@AEBVFObjectInitializer@@@Z) C:\Users\Ben\Documents\Unreal Projects\IntroToProg\Intermediate\ProjectFiles\IntroToProgCharacter.cpp.obj IntroToProg
Of course, you could instead just enter that same value in to whatever input pin that output pin's connected to. The advantage here is that it allows you to connect the output to multiple input pins, ensuring that when you change the single int value, it changes for all of the connected pins.
There's no reason to use
So I resolved my error by just simply using the source code from the method directly. I am still a little confused as to what literal ints and if they are different from regular ints.
answered Jan 09 '15 at 05:13 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here