4 ms·
Unreal really is a fun tool to use, and I highly recommend it over Unity for stuff like blueprints. Things like this are awesome as well. What I really really
by rtpg 4y ago
Unreal really is a fun tool to use, and I highly recommend it over Unity for stuff like blueprints. Things like this are awesome as well.
What I really really want (and maybe I can have this easily!) is to be able to inline some C++/Rust inside a blueprint. Sometimes there are expressions that would be way easier to type out, or some tricky state logic that I can express with prose more nicely than with arrows.
I imagine the "serious" thing to do is to build out the C++ in some other file and then do the thing with my blueprint, but imagine if we had a completely smooth gradient for upping the tooling from blueprint to C++ when needed!
- coolspot 4y agoAFAIK you can call C++ code from a blueprint and other way around.
- ferrumfist 4y agoYou can using these function macros to C++: UFUNCTION(BlueprintCallable) // This is a purely C++ function that is exposed to Blueprints and can be called from blueprints UFUNCTION(BlueprintNativeEvent) // This can be implemented in C++, Blueprint, or both (in the Blueprint implementation, call the Parent method and it will run the C++ function and then run the Blueprint function) UFUNCTION(BlueprintImplementableEvent) // This is a purely Blueprint function (though it is defined in the C++ header) that can be called from C++. I believe there may also be some funky reflection code you can create to invoke Blueprint functions from C++, but there's very little reason for that as BlueprintImplementableEvent does that in a cleaner way. Source: https://docs.unrealengine.com/4.26/en-US/ProgrammingAndScripting/GameplayArchitecture/Functions/ https://docs.unrealengine.com/4.26/en-US/ProgrammingAndScrip...
- rtpg 4y agoYeah I’m talking more about the UX of doing it. I mean really I would love some ML-like language I could write some code snippets directly into the blueprint. Like anonymous functions but for blocks. Would be a disaster in a professional context but I would like it lol
- sk0g 4y agoI haven't heard great things about it, but there is a Marketplace product that should let you do what you are after. Alternatively, you could just write the code you want in some BPFL file, and expose them as static functions. https://www.unrealengine.com/marketplace/en-US/product/magic-node https://www.unrealengine.com/marketplace/en-US/product/magic...