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

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


Removing Namespaces from default scripts ... is it safe ?

Hi all, I am not an expert in scripting and the Unity structure is still a bit obscure to me. I am currently trying to check for events I created in my game from inside the FirstPersonController script...

View Article


My namespace "System" failed to work

My namespace "System" failed to work ,I don't know how to resolve it .In my codes,all the codes about "System"(namespace) become to red.I also search it and someone say that it‘s about the version of...

View Article

Was UnityEngine.CrashLog deprecated with Unity 5.5.0?

I previously implemented the Unity crash reporting using this tutorial ([game performance reporting tutorial][1]) with Unity 5.4.2f2. After updating to Unity 5.5.2f1 I now get this compile error: error...

View Article

In EditorWindow: The type or namespace 'MyClass' could not be found

I am trying to refactor my code from the EditorWindow calss to a couple of scripts and I then encounter this problem:> The type or namespace name 'MyClass' could not be found (are you missing a...

View Article


Alternative for FileUtil in Build

Hi everyone, I've just learned that "using UnityEditor" wasn't used in builds. My problem is that i've used FileUtil.DeleteFileOrDirectory to delete a file at a given path. And i need to use...

View Article

How to hide the namespace in an editor window?

I am making an editor window and I have put the script within a namespace. Whenever I have the editor window up, the namespace is shown in the top of the editor window. Is there any way to hide this...

View Article

Wwise integration Issues

Before integrating Wwise, I had to put Photon's ErrorCode class into the Photon namespace and fix those references. This allowed Wwise to successfully integrate. Before integration, I had no compiler...

View Article


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

I'm developing a moblie app, and I get this error: The type or namespace name "Unity" does not exist in the namespace "UnityEditor.Facebook" ![alt text][1] ![alt text][2] What can I do to fix this?...

View Article


How to commuunicate scripts form default namespace?

Hi, I got a problem. How to take values form script One to script Two, when the first script is in different namespace? I mean i got something just like this (let's say it is so short) first script:...

View Article

Why are compiler defines never respected FROM *.rsp files WHEN namespaces are...

**Issue** I have much success with RSP files for "-unsafe". It works in all unity versions and all platforms my team requires. However, I recently added custom defines to the RSP files. Everything...

View Article

Unity namespace cannot be found (C# MonoDevelop)

Hi, just having a little issue here. I updated from 5.5 to 5.6 and all my scripts aren't recognizing the Unity namespace in MonoDevelop (C#). The game still compiles without any errors, but it annoys...

View Article

Having problem with 2D Roguelike tutorial Error: " error CS0101: The...

I am having problems with 2D Roguelike and I get an error code; error CS0101: The namespace `Completed' already contains a definition for 'BoardManager'` Anytime if "namespace Completed" is removed i...

View Article


Why can't compiler find Physics.ClosestPoint or Collider.ClosestPoint?

So according to the documentation these functions exist: https://docs.unity3d.com/ScriptReference/Physics.ClosestPoint.html https://docs.unity3d.com/ScriptReference/Collider.ClosestPoint.html However...

View Article

the type or namespace name 'CBBinding' could not be found.,the name...

using UnityEngine; using System.Collections; using Chartboost; public class CBads : MonoBehaviour { public bool shown = false; // Use this for initialization private CBads CB; private CBManager void...

View Article


What are the unityeditorinternal and the unityengineinternal namespace and...

When I type "using" intelisense give me two namespaces those I never heard about and missing from the docs: __UnityEditorInternal__ and __UnityEngineInternal__ or maybe I didn' found them. What are...

View Article

CompilerParameters not found in System.CodeDom.Compiler

Hey folks, I am trying to use YieldProlog in my project but I am having a rather peculiar issue. Although I am using the namespace System.CodeDom.Compiler and my references include, obviously, the...

View Article


Dumb Question - Can't use Standard Assets package in scripts.

I've imported Standard Assets 2D and CrossPlatformInput. However when I make a new script I can't `using UnityStandardAssets` or `UnityStandardAssets.CrossPlatformInput`, MonoDevelop just doesn;t...

View Article

Unity 5.6.0p3 does not recognize class inside namespace

This works: using Zenject; public class UiSignalInstaller : MonoInstaller { public override void InstallBindings() { Container.DeclareSignal(); Container.Bind().AsSingle().NonLazy(); } } public class...

View Article

Create asset bundle on backend - using Unity namespace in backend app

Hello! I am going to give possibility for user to upload content (some 3d model) from web CMS and then, in Mobile App created with Unity - download it and show for user. Please tell me - is there a...

View Article
Browsing all 398 articles
Browse latest View live