Quantcast
Channel: Questions in topic: "namespace"
Browsing all 398 articles
Browse latest View live
↧

error CSO246: The type or namespace "Nunit" could not be found.

400+ of these errors pop up when ever i open unity.Even with new projects.It was good until i restored my pc. After that is starts giving these errors.So , i reinstalled Unity. But it doesn't work.

View Article


How to make namespaces appear in the AddComponent List automatically?

Let's say I have a component called Platform within the namespace Hardware. Then let's say I have another component Platform within the namespace GameEntity. Both inherit from monobehaviour. So when I...

View Article


Hello there I am getting 'the type or namespace 'Controller' could not be...

I am using Unity 2019.3 and also cannot find the script when I assign it to a character. I saw using System.Web.Mvc can fix it but it cannot find the package to install it. Any help what should I do?...

View Article

Extension class won't recognize the type in some imported namespace

Hello, Please help, i'm losing my mind. I created a class for housing a Quaternion extension method. However, after "successfully" importing the unity engine namespace, the Quaternion struct (class?)...

View Article

The type or namespace name 'HighDefinition' does not exist in the namespace...

I keep getting this error, and I'm not sure what I'm missing do I need to install extra stuff? **The type or namespace name 'HighDefinition' does not exist in the namespace 'UnityEngine.Rendering' (are...

View Article


How do I acquire the knowledge of every Unity namespace and every Unity...

Im new to Unity and I understand the whole `using MagicalLibraryOfTools` syntax ..but i cannot find a list of all said magical libraries of predefined classes and their methods. I feel like a mother...

View Article

How to solve "The type x exists in both y aand z"?,How to solve "The type x...

I've just exported as package a scene from a Unity 2019.2.17f1 project and imported it in another Unity 2019.2.17f1 project and large number of scripts deliver the following error:...

View Article

The type or namespace "Target" could not be found?

I'm getting this error message from this code: using UnityEngine; public class Gun : MonoBehaviour { public float damage = 10f; public float range = 100f; public Camera fpsCam; // Update is called once...

View Article


Namespaces that correspond to file location

I would like to use "namespaces that correspond to file location" rule for my Unity project, but I cannot think about subdirectory names. For example, I am having this script in this directory...

View Article


the type or namespace name "PostProcessingProfile" could not be found

sorry for the noob question but i get these errors with my script: The type or namespace name "PostProcessingProfile" could not be found The type or namespace name "PostProcessingBehaviour" could not...

View Article

[resolved] Visual Studio does not find a namespace from the project

I am working on a project for quite some time and all of a sudden, the following error appeared in Visual Studio (Mac): The type or namespace name 'Pun' does not exists in the namespace 'Photon'. I...

View Article

How to write custom blocks/nodes for Unity VFX Graph?

Hey, as I haven't yet found any advice on how to do it, I decided to ask here: How can i add a custom Block or Node for the VFX Graph? If you just copy an existing .cs file to your assets and edit it,...

View Article

Valve.VR or Valve.VR.InteractionSystem not found

Ive been having this error for few days, and i have no idea how to solve this. When i make new project and import SteamVR everything works great, until i want to make cript where i refference Valve.VR...

View Article


Errors with Unity Advertising after redownloading project and reenabling ads

Hello, I had to redownload my project after some changes that bugged my editor. After redownloading the project from Collab I had to re enable Ads in Services, which resulted in one of my scripts...

View Article

two weird namespace errors

I have like 2 errors from unity that visual studio dont show and I dont know what is means. Please help me I am an idiot. script I used: `using System.Collections; using System.Collections.Generic;...

View Article


Namespace references keep breaking in Visual Studio

Since updating Unity I am unable to compile the project code in Visual Studio. It still compiles and runs in the Unity Editor but Visual Studio gives hundreds of missing reference errors (*"The type or...

View Article

Can't inherit from namespace

I am attempting to implement networking in my game with the use of Mirror. However, Unity is preventing me from using the package I just imported. Unity is telling me "the type of namespace 'Mirror'...

View Article


The type or namespace 'UI' does not exist in the namespace UnityEngine. But...

I'm using Unity 2019.3.13 and Visual Studio Community Edition. This issue does not cause build or play errors. Just red squiggly lines that are annoying tbh. Not sure what the problem is. I've tried...

View Article

Namespace conventions for private developers (what to put instead of "company")

It's suggested to use the following scheme for namespace conventions:.(|)[.][.] [source][1] ---------- My question is: what to put instead of "company" when writing code as a private developer? Simply...

View Article

using sinemachine.utility / using tmpro. error and problems.

hello all, my problem: i used cinemachine and setup a cinemachine brain and cinemachine virtual camera, along a target group, everything worked fine until i updated unity. now this was some time ago...

View Article
Browsing all 398 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>