kotlin-unreal: Use the amazing Kotlin language with UnrealEngine 4
Uses Unreal.js wich is a Javascript runtime built for UE4
- Access to all Blueprint functions and classes
- A KotlinComponent attachable to an actor to control its behavior
- Interoperation between variables and functions defined at the Blueprint level
- Customizable Hot Reload: Apply code updates to everything or to the actors you're interested in, while in play mode.
Unreal 4.26.1 and Kotlin 1.4.31, but may work with other versions too.
IntelliJ IDEA Community: https://www.jetbrains.com/idea/download/
- Install Unreal.js plugin in your engine. The easiest way is finding it on the Unreal Marketplace: https://www.unrealengine.com/marketplace/en-US/product/unrealjs
- Clone or download this repository
- You should be able to right click the file "KotlinUnreal.uproject" and select "Launch Game"
- You might be asked to recompile or update the project to your engine version and after that you should be seeing the First Person Game example.
Open the project with the Unreal Editor and open and play the maps located on the Maps directory inside the Content folder. Some of them might look empty at first, but the Kotlin magic will fill them with surprises when you get into the Play mode.
Check out the wiki for details, tutorials and guides:
https://github.com/hiperbou/kotlin-unreal/wiki
Playlist on Youtube
https://youtube.com/playlist?list=PLJm5YzQnui1RfCue2NJtEKDSAJf-Kh0WG
First Person Game example (watch on Youtube):
https://github.com/hiperbou/kotlin-unreal/blob/master/kotlin-examples/src/examples/game/Game.kt
Hello World example:
https://github.com/hiperbou/kotlin-unreal/blob/master/kotlin-examples/src/examples/hello/HelloKotlin.kt
Rotating cubes example:
https://github.com/hiperbou/kotlin-unreal/blob/master/kotlin-examples/src/examples/cubes/WhiteRotatingCube.kt
Adventure example (Kotlin Coroutines):
https://github.com/hiperbou/kotlin-unreal/blob/master/kotlin-examples/src/examples/adventure/InteractiveCube.kt
First Person example:
https://github.com/hiperbou/kotlin-unreal/blob/master/kotlin-examples/src/examples/firstperson/FirstPerson.kt
Third Person example:
https://github.com/hiperbou/kotlin-unreal/blob/master/kotlin-examples/src/examples/thirdperson/ThirdPerson.kt
Scene Lights example:
https://github.com/hiperbou/kotlin-unreal/blob/master/kotlin-examples/src/examples/scenelights/SceneLights.kt
Hello Blueprints example:
https://github.com/hiperbou/kotlin-unreal/blob/master/kotlin-examples/src/examples/blueprint/HelloBlueprints.kt
Hello Blueprint example:
https://github.com/hiperbou/kotlin-unreal/blob/master/kotlin-examples/src/examples/blueprint/HelloBlueprint.kt