goome

Unity 0.2

Add the package

Window > Package Manager, the + at the top left, Add package from git URL:

https://github.com/goome-ui/csharp-goome.git?path=/unity/com.goome-ui.goome

Add a tag to pin a version, like ...?path=/unity/com.goome-ui.goome#v0.2.0. Or put it in Packages/manifest.json:

{
  "dependencies": {
    "com.goome-ui.goome": "https://github.com/goome-ui/csharp-goome.git?path=/unity/com.goome-ui.goome"
  }
}

It has GoomeSharp and the native libs for Windows x64, Linux x64 and both Macs, with import settings in the .meta files (CI checks that the libs and their .meta files are there). It asks for Unity 2021.3 or newer. CI never starts Unity, it only compiles the package C# against stand-in UnityEngine types, so if the import settings or something else misbehaves in your editor, tell me which Unity version.

Using it

Unity means offscreen mode. goome draws into a buffer, you upload it as a texture and push it your input. Copy the MonoBehaviour from Getting started in Unity.

Debugging

Attach Rider or Visual Studio to Unity like normal. The native libs in the package have no symbols, build your own with -g and drop it over the packaged one if you need to step into C.

Gotchas

Edit this page on GitHub