Interoperability with C++ code #93
-
Hi My project I've done some work in C++. Is there any way to reference enums/ classes from the C++ project, other than doing a round trip by blueprint? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, it's possible but requires a good understanding of how interoperability in C# works in general. Wrapping and exposing C++ functions is just regular P/Invoke with all relevant implications related to binary compatibility of function signatures and data types, memory management, and so on. In one or another way you will need glue code, but with blueprints, it's way easier and safer. With blueprint nodes generation it will be even better, see #33. |
Beta Was this translation helpful? Give feedback.
Yes, it's possible but requires a good understanding of how interoperability in C# works in general. Wrapping and exposing C++ functions is just regular P/Invoke with all relevant implications related to binary compatibility of function signatures and data types, memory management, and so on.
In one or another way you will need glue code, but with blueprints, it's way easier and safer. With blueprint nodes generation it will be even better, see #33.