How can I access a method from a namespace to a class not belonging to any...
How can I access a method from a namespace to a class not belonging to any namespace ? (or it does but I don't know what to use) EXAMPLE: //CLASS 1 using UnityEngine; using System.Collections; public...
View ArticleAssets/CArSmoothFollow.cs(40,68): error CS0246: The type or namespace name...
Hey! iam trying to fill a public Transform with a Gameobject of another script. here is the target script which using UnityEngine; using System.Collections; using LE_LevelEditor.Core; public class...
View Article"namespace or end of file expected" Not sure what to do. 2D Rouge-Like Tutorial
using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEngine.UI; public class GameManager : MonoBehaviour { public float levelStartDelay = 2f; public float turnDelay...
View ArticleThe type or namespace name `UnityEditor' could not be found
Hi, I'm using the below CrossPlatformInputInitialize.cs script and when trying to build to iOS I get the following errors, how can I correct these errors? .. Thanks....
View ArticleInspector references and scripts with the same name
Hello! I have a question regarding inspector references and scripts with the same name. I have a script called "EnemyClass", which is a class for all types of enemies that has functions that are used...
View ArticleJsonUtilty not found
I am trying to use JsonUtility.fromJson which according to the docs looks like it comes form UnityEngine which I am using. I am getting the error message: "the type or namespace name 'JsonUtility' can...
View ArticleType or namespace name Pipes does not exist in the namespace System.IO.
I am trying to use the class `System.IO.Pipes.NamedPipeClientStream`but Unity cannot find it. The build of the project works in Monodevelop but when I go over to Unity it says the following...
View ArticleHow do I override Unity to use the UnityEditor name space at build time?
I'm going to make this sort of lengthy. This all started when we needed to spawn projectiles from multiple cannons from multiple players at or around the same time. The instantiate function would cause...
View ArticleError: 'WiiU' does not exist in the namespace `UnityEngine`
I have the Wii U SDK, and I tried loading it with a series of the example code for various wii u stuff (nunchuck, rumble, pad screen, etc) and i get a bunch of errors saying:> error CS0234: The type...
View ArticleUnity Advertisement isn“t existing?
I am trying to add Unity Ads to my project. I“ve downloaded Unity ads from the asset store and followed the instructions but if I try to initialize the namespace: "using UnityEngine.Advertisements"...
View ArticleWhy am I getting conflicting answers about using UnityEditor
So basically this is how it goes:> GetActiveScene is under> UnityEngine.SceneManagement, so write> on top:>> using UnityEngine.SceneManagement;>> or like this:>>...
View Articlenamespace UnityStandardAssets.Characters.FirstPerson
I can't get any script component from other object. I got this error:> error CS0246: The type or namespace name `MyScript' could not be found. Are you missing a using directive or an assembly...
View ArticleThe type or namespace name NetworkInformation does not exist in the namespace...
I have a project in unity 5.3 where since I upgraded to windows 10 I got an error. ```The type or namespace name NetworkInformation does not exist in the namespace System.Net. Are you missing an...
View ArticleGetComponent in namespace cannot reference a script in no namespace
Hello, I am modifying the Standart-Third-Person controller. I want to Rotate the player with the script called "ThirdPersonUserControl.cs". The Rotation-value is in the Cam-Script on the mainCamera. So...
View ArticleC# Does Unity support loading from Resources class?
namespace SQLHacker { public class SQLUI : MonoBehaviour { void Awake() { var myString = SQLHacker.Properties.Resources.CorrectQuery_01; } } } I have set default namespace in the solution properties of...
View ArticleI have an error and don't know what the cause is, help?
So I have been coding a game that involves zombies, currently I am working on the animation and pathfinding. Whis is my nav mesh code that gets the error: ***// Update is called once per frame void...
View ArticleNamespace / Inspector
Is there a way to differentiate between two classes that are using Namespace in the inspector? Otherwise they are identical when you attaching via get component. Any suggestions? Thanks in advance.
View ArticleNamespace error....what???
After I updated my Unity version from 5.1.1p2 to 5.2.3, I've been having so many frustrating problems, many of which I've already resolved, but this is one of the remaining ones. For some reason I keep...
View ArticleSystem.IO missing methods (Path.GetExtension() and more)
Hi, I want to use the following method in a script : http://docs.unity3d.com/ScriptReference/Path.GetExtension.html In Mono I imported the related namespaces but I get the following error when I try to...
View Articleerror CS0246: The type or namespace name `UMAGeneratorBase' could not be found
What should I do when I get these errors? I cannot find the files anywhere in the folder it says they should be in. I have tried reinstalling the package. error CS0246: The type or namespace name...
View Article