UnityGLTF icon indicating copy to clipboard operation
UnityGLTF copied to clipboard

Unity project: missing references

Open revyTH opened this issue 7 years ago • 1 comments

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?

revyTH avatar Dec 07 '18 17:12 revyTH

Solved for now commenting all the testing code as mentioned here: https://github.com/KhronosGroup/UnityGLTF/issues/316

revyTH avatar Dec 12 '18 10:12 revyTH