Skip to content

Unity project: missing references #322

@revyTH

Description

@revyTH

Hi, apologies if this is a stupid question.

I've cloned the project, opened the GLTFSerialization solution in Visual Studio 2017 and successfully build.
Then I've opened project UnityGLTF in Unity 2018.2.18f1. I have the following errors in the console:

  • Assets/Resources/GLTFAssetGeneratorTests.cs(12,19): error CS0234: The type or namespace name TestTools' does not exist in the namespace UnityEngine'. Are you missing an assembly reference?

  • Assets/Resources/GLTFSceneTests.cs(3,7): error CS0246: The type or namespace name `NUnit' could not be found. Are you missing an assembly reference?

I've tried to open the project in Visual Studio and manually installing NUnit from Nuget package manager but nothing changed.
Also I am not sure how can I fix the error about TestTools, all the other namespaces seem to be present:

using AssetGenerator;
using Newtonsoft.Json;
using NUnit.Compatibility; <--- MISSING
using NUnit.Framework; <--- MISSING
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using UnityEditor.SceneManagement;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.Rendering;
using UnityEngine.SceneManagement;
using UnityEngine.TestTools; <--- MISSING
using UnityGLTF;
using UnityGLTF.Examples;
using Camera = UnityEngine.Camera;
using Object = System.Object;

Any suggestion on how to fix these issues?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions