-
-
Save BobGneu/55fc893d379493b65dfd to your computer and use it in GitHub Desktop.
Example of callback usage. Includes pulling arguments out and assigning the return value.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Flathead::Math_RadiansToDegrees(const FunctionCallbackInfo<Value>& args) | |
{ | |
double value; | |
HandleScope handle_scope(args.GetIsolate()); | |
value = args[0]->NumberValue(); | |
args.GetReturnValue().Set(FMath::RadiansToDegrees(value)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment