Hi,
I’m new to Unity. I am trying to use the Barracuda package. I installed it via the package manager. It worked well as I am able to preview .onnx models in Unity.
However, I run into an error when trying to use the barracuda in c# script. It seems the script isn’t able to locate the package. I get the following error: “The type or namespace name ‘Barracuda’ could not be found (are you missing a using directive or an assembly reference?)”. I get the same error when trying to import the default packages, such as Burst.
My script is as default as it gets.
using System;
using Barracuda;
using System.Linq;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
public class LoadModel : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}
Thanks’ in advance!
Edit: I actually get the same error in windows.
Edit: The correct way to import is with with “using Unity.Barracuda”. My bad!