UrhoSharpReadme.txt 603 B

123456789101112131415
  1. In order to run a game:
  2. 1) If you need custom assets - add "Data" folder containing your assets to "Assets" project folder and make sure all files have "AndroidAsset" build action.
  3. 2) use the following code snippet in order to open a new fullscreen activity with the game:
  4. UrhoEngine.Init();
  5. UrhoSurface.RunInActivity<MyGame>(new ApplicationOptions("Data"));
  6. or
  7. UrhoSurface.RunInActivity<MyGame>();
  8. if you don't need any custom assets and built-in ones (CoreData) are enough for you.
  9. CoreData assets and native libs for x86, armeabi, armeabi-v7a are added via .targets file by the nuget package.