UrhoSharp Mac Support

PDF for offline use

Let us know how you feel about this


0/250

Mac Specific Setup and Features

While Urho is a portable class library, and allows the same API to be used across the various platform for your game logic, you still need to initialize Urho in your platform specific driver, and in some cases, you will want to take advantage of platform specific features.

In the pages below, assume that MyGame is a sublcass of the Application class.

MacOS X

Supported architectures: x86/x86-64 on 32bit and 64 bits.

Creating a Project

Create a console project, reference the Urho NuGet and then make sure that you can locate the assets (the directories containing the Data directory).

DesktopUrhoInitializer.AssetsDirectory = "../Assets";
new MyGame().Run();

Example

Complete example

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.