JSPM

ai.muna.muna

0.0.45
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 62
  • Score
    100M100P100Q65656F
  • License Apache-2.0

Run AI inference in Unity Engine.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ai.muna.muna) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Muna for Unity Engine

    function logo

    Run AI inference in your Unity applications. In a few steps:

    Installing Muna

    Add the following items to your Unity project's Packages/manifest.json:

    {
      "scopedRegistries": [
        {
          "name": "Muna",
          "url": "https://registry.npmjs.com",
          "scopes": ["ai.muna"]
        }
      ],
      "dependencies": {
        "ai.muna.muna": "0.0.45"
      }
    }

    Retrieving your Access Key

    Head over to muna.ai to create an account by logging in. Once you do, generate an access key:

    generate access key

    Then add it to your Unity project in Project Settings > Muna:

    add access key to Unity

    Making a Prediction

    First, create a Muna client:

    using Muna;
    
    // 💥 Create a Muna client
    var muna = MunaUnity.Create();

    Then make a prediction:

    // 🔥 Make a prediction
    var prediction = await muna.Predictions.Create(
        tag: "@fxn/greeting",
        inputs: new () { ["name"] = "Roberta" }
    );

    Then use the results:

    // 🚀 Use the results
    Debug.Log(prediction.results[0]);

    Requirements

    • Unity 2022.3+

    Supported Platforms

    • Android API Level 24+
    • iOS 14+
    • macOS 12+ (Apple Silicon and Intel)
    • Windows 10+ (64-bit only)
    • WebGL:
      • Chrome 91+
      • Firefox 90+
      • Safari 16.4+

    Thank you very much!