Haya im experiencing an issue where my namespace is no longer being defined upon using this code:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using UnityEditor;
using Analyzer;
using System.Threading;
using UnityEngine.Networking;
public class LBDS : MonoBehaviour{
public Main main = new Analyzer.Main();
// Other code below
}
and my namespace is just this:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using UnityEditor;
using Analyzer;
using UnityEngine.Networking;
namespace Analyzer{
public class Main : MonoBehaviour {
// All other code here
}
}
Furthermore unity seems to be referencing the namespace as a script like this (Don’t worry about the names i took this image after a few changes but i’ve reverted them):
(if an image doesn’t show up here its because i don’t have permissions because im a low tier user so to put it simpler ~ in the unity editor the main variable is shown as an assignable script which it shouldn’t be doing since it’s a namespace)
However other namespaces seem to work and the only error i get is when running the code and that just saying how the main variable is unnassigned
I’ve tried rebuilding my csproj files aswell but that did nothing - aswell as changing to multiple versions
Any help will be greatly appreciated, tnx