0.0.15 • Published 2 days ago

ai.fxn.fxn3d v0.0.15

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 days ago

Function for Unity Engine

function logo

Run AI prediction functions (a.k.a "predictors") in your Unity apps and games. With Function, you can build AI-powered apps by creating and composing GPU-accelerated predictors that run in the cloud. In a few steps:

Installing Function

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

{
  "scopedRegistries": [
    {
      "name": "Function",
      "url": "https://registry.npmjs.com",
      "scopes": ["ai.fxn"]
    }
  ],
  "dependencies": {
    "ai.fxn.fxn3d": "0.0.15"
  }
}

Retrieving your Access Key

Head over to fxn.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 > Function:

add access key to Unity

Making a Prediction

First, create a Function client:

using Function;

// Create a Function client
var fxn = FunctionUnity.Create();

Then make a prediction:

// Make a prediction
var prediction = await fxn.Predictions.Create(
    tag: "@samplefxn/greeting",
    inputs: new () {
        ["name"] = "Rhea"
    }
);
// Log the result
Debug.Log(prediction.results[0]);

Requirements

  • Unity 2021.3+

Supported Platforms

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

Useful Links

Thank you very much!

0.0.15

2 days ago

0.0.14

9 days ago

0.0.13

26 days ago

0.0.12

1 month ago

0.0.10

2 months ago

0.0.11

2 months ago

0.0.9

2 months ago

0.0.8

2 months ago

0.0.7

3 months ago

0.0.6

3 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.5

8 months ago

0.0.4

10 months ago

0.0.1

11 months ago