In Unity, add the com.egg.runtime package from disk, import your file as name.egg.bytes, and add the EggPlayer component to a RawImage or a Renderer. It plays the state machine into a Texture2D and forwards UI pointer events; the EggRuntime class sets inputs and view model values from C#.
- Platform
- Unity (macOS, Windows, Linux, Android, iOS)
- Binding
- C# package com.egg.runtime
- Draws with
- Texture2D on a RawImage or Renderer
- Same file everywhere
- One .egg plays the same on every runtime
- License
- MIT or Apache-2.0
Set it up
- Package Manager › Add package from disk › choose the package.json of com.egg.runtime.
- Put the native library for each platform in Runtime/Plugins.
- Rename your file to name.egg.bytes so Unity imports it as a TextAsset.
- Add EggPlayer to a RawImage (UI) or an object with a Renderer, and assign the file.
- Set inputs and view model values from your scripts through its EggRuntime.
Last checked against the product on 2026-10-15.



