I've never used the UDK before and I am wondering: is it possible to use the UDK through C++ instead of UnrealScript?

I saw it's possible to bind external C++ DLL's to UnrealScript, but I don't know if it's possible to call engine functions from inside C++ code.

  • \$\begingroup\$ Maybe it's not possible, because of .dll's raison d'etre. \$\endgroup\$ – Emadpres Nov 12 '12 at 7:20
  • \$\begingroup\$ Also in case you didn't know, you can use C++ with Unreal but not UDK easily \$\endgroup\$ – CobaltHex Nov 13 '12 at 1:07
  • \$\begingroup\$ @CobaltHex: from epic site it seems only to allow me to download UDK. Where can I find UnrealEngine3? What's the license cost? \$\endgroup\$ – Heisenbug Nov 13 '12 at 9:36
  • 1
    \$\begingroup\$ unreal engine 3 is only (afaik) licensed to AAA companies. It probably costs at least $10k \$\endgroup\$ – CobaltHex Nov 14 '12 at 2:47

As you've spotted yourself, it's possible to use C++ within the UDK thanks to DLLBind. But there's no way you will be able to call engine functions from C++, you'll have to glue everything together using UnrealScript.

  • \$\begingroup\$ thanks for clarify. Is there any good reason in order not allow C++ bindings to engine function in UDK? \$\endgroup\$ – Heisenbug Nov 12 '12 at 13:14
  • \$\begingroup\$ I suppose that would render licensing UE3 less interesting for developers, and Epic doesn't want to cut that revenue stream. So not a technical reason, bur rather a business decision. \$\endgroup\$ – Laurent Couvidou Nov 12 '12 at 13:34

With UDK 4.0 and higher, definitely, since UnrealScript is being replaced with direct C++ APIs. UDK 3.0 and lower, unlikely.

  • 2
    \$\begingroup\$ Woah, really? Would you be kind enough to provide any other information you have regarding this, links even? I've searched around but can't find much. Would appreciate it. EDIT: I've found mention of this with regards to UE 4. Do you mean this would be the case with the hypothetical UDK based on UE 4? \$\endgroup\$ – Jorge Israel Peña Nov 12 '12 at 6:22
  • \$\begingroup\$ thank your for the answer. Could you provide some reference on direct C++ for UDK 4.0? \$\endgroup\$ – Heisenbug Nov 12 '12 at 10:38
  • \$\begingroup\$ @JorgeIsraelPeña: Yes, this is the case with the hypothetical UDK shipped with UE 4. \$\endgroup\$ – Casey Nov 12 '12 at 12:18
  • \$\begingroup\$ @Heisenbug: en.wikipedia.org/wiki/Unreal_Development_Kit#Unreal_Engine_4 and udk.com \$\endgroup\$ – Casey Nov 12 '12 at 12:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.