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

Error CS0234: The type or namespace name `IActiveBuildTargetChanged' does not...

Hi, I was searching for this error and I found [this](http://answers.unity3d.com/questions/1114080/the-type-or-namespace-name-unityeditor-could-not-b-2.html ) answer but it is not working. I moved...

View Article


Namespace error from external assets

Hi everyone, english is not my first language so i'll try to explain you the problem as well as i can. I'm working on a project compiled from many people before me so i don't really know what did they...

View Article


Is there a way to see namespaces in Editor ? (complete class name)

Hi, Unity doesn't show complete class name, this can be confusing, for instance with the search box in the inspector. (if same class name but different namespace) Is there a solution or good practices?

View Article

Compiled managed dll that references Unity APIs from different Unity versions

Let's say there's some API A in Unity 5.6.x that is deprecated in 2017 and there is some other API B in 2017 that does not exist yet in 5.6.x. Is there any way to create a compiled managed dll that...

View Article

error CS0118: 'Player' is a 'namespace' but a 'type' was expected

using System.Collections; using System.Collections.Generic; using UnityEngine; using Player ; namespace Player { public class MonoBehaviour { Player pl1 = new Player (); GameObject [] pauseObjects;...

View Article


Assets/Looper.cs(4,23): error CS0246: The type or namespace name...

hey everybody i've got this script from someone but it wont work and i can't get it to work it keeps giving me this error IN CONSOLE Assets/Looper.cs(4,23): error CS0246: The type or namespace name...

View Article

UnityEngine found but MonoBehaviour or Vector3 not found in MonoDevelop

Hi all, I have recently noticed that UnityEngine dependencies were not recognized in MonoDevelop for one of my projects. It works fine for all my other projects, even ones made last year. And...

View Article

Namespace not working

I am making a script that should simplify things for other scripts, and to use the functions I decided to use a namespace. The script looks like this: using System.Collections; using...

View Article


.NET dll seen as native in Unity3D

I got a NI USB-6001 I/O device but it cant be used in unity3D. The purpose of the hardware here is to connect buttons, joystick, switches etc. to it and then to read it out by using the API and turning...

View Article


Variable type Target Unity

The script (In C#): public class Gun : MonoBehaviour { public GameObject enemy; // Use this for initialization void Start () { } public float damage = 100f; // Update is called once per frame void...

View Article

Get All Unity Namespaces (string array)

Hi All, I'm making a custom file creator, where you can specify your file name, location, and also the namespaces to include. I've been able to include all generic c# namespaces, as well as any custom...

View Article

How do you use namespace functions?

I have a weird problem that no one seems to be talking about. I'm trying to use namespaces for my script mainly to see how it works but no matter how simple the function is it gives me a...

View Article

MonoDevelop not recognizing "UnityEngine namespace"

For some odd reason MonoDevelop can't recognize this. I've searched around online and on the forums and nothing seems to work. I've tried uninstalling and re-installing, which at first worked, but the...

View Article


Using variables without overflow

I have a 2 scripts test.cs and test2.cs. I want it test2 to access test, and it works, but i don't want to make a new variable every function. Maybe the code will tell more :D Current Code (works):...

View Article

Best way to communicate between scripts

Hello everyone. I would like to know what is the best way to communicate between scripts without referencing them through the inspector. I've found some very helpful answers but I'm not sure which is...

View Article


Types and namespace not found...

Ok, so I'm new to Unity and C# but I wrote a tiny script which runs without a problem inside Unity. But when I try to export it (build) I get a bunch of errors all telling me types are not found, and...

View Article

Visual Studio 2017 namespace cannot be found on installed package

I've installed the FileHelpers package http://www.filehelpers.net using the package manager console in Visual Studio 2017 and when I start Unity I get the error message "The type or namespace name...

View Article


AsyncGPUReadbackRequest could not found

I am getting errors like "The type or namespace name 'AsyncGPUReadbackRequest' could not be found (are you missing a using directive or an assembly reference?)" "The name 'AsyncGPUReadback' does not...

View Article

Recording video from webCam

Hello, I'm trying to use the script from [VideoCapture](https://docs.unity3d.com/ScriptReference/XR.WSA.WebCam.VideoCapture.html), on editor mode doesn't reflect any issue but when it comes to the...

View Article

Any reason not to use namespace for scripts for asset store

I noticed that some asset store packages name their assets like this company or project name _ then a class name (like vp_Something). This might be to find the classes from a specific asset faster and...

View Article
Browsing all 398 articles
Browse latest View live


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