See https://gist.github.com/oedalpha/8971188de03af9a879f0 to see some source codes.
- Mac: For Mac, iOS build
- I used MacOSX 10.9.
- Windows PC: For Windows, Android build
- I used Windows 8.1 Pro 64bit.
-
Mac:
- XCode
-
Windows:
- Visual Studio 2013 for Windows
- VS Express for Desktop is OK
- Tegra Android Development Pack
- https://docs.unrealengine.com/latest/INT/Platforms/Android/GettingStarted/
- It seems that using TADP will be least painful.
- C:\Program Files\Unreal Engine\4.0\Engine\Extras\Android\tadp-2.0r8-windows.exe
- Set Android environment variables before you create your project.
- Visual Studio 2013 for Windows
-
Unreal Engine 4
- https://docs.unrealengine.com/latest/INT/Programming/Plugins
- https://wiki.unrealengine.com/An_Introduction_to_UE4_Plugins
- https://wiki.unrealengine.com/Linking_Static_Libraries_Using_The_Build_System
-
Launch Unreal Engine and start new C++ project. (Mine is Test2.)
- This will launch Visual Studio. Build solution.
- Active solution: Development Editor - Windows
- For XCode, select scheme, destination, configuration before building.
- Scheme: Test2Editor - Mac
- Destination: My Mac 64-bit
- Build Configuration: Development
- This will launch Visual Studio. Build solution.
-
You can find your project at My Documents -> Unreal Projects. Make new folder 'Plugins', and Your Plugin directory (Mine is TestPlugin) there.
- See my TestPlugin codes Here . Very similar to wiki contents.
-
In Visual Studio, add all .cs, .h, .cpp of plugin to Solution Explorer. And Rebuild project. This should be successful.
-
We will use plugin from the C++ code. Open Test2.Build.cs to add dependency and include path.
-
Edit Test2.cpp
-
Relaunch the project from Unreal Engine. Unreal Editor will show up now.
-
From Unreal Editor,
- Turn on Output Log (Window -> Output Log.)
- Choose Window -> Plugins. Enable your plugin and restart Unreal Editor.
-
Now you can see 'Test2: True' from the Output Log.
- Unreal Editor uses CPU/GPU a lot. Be careful.
- Change 'Engine Scalability Setting' to Low: http://cafe.naver.com/unrealenginekr/191
- To launch app on Android, use Launch Button at toolbar of Unreal Editor.