Quantcast
Channel: Questions in topic: "namespace"
Browsing index pages (398 articles)

How to reference classes inside Assets folder from a script inside Packages...

Hello, This might be a very noob question but I have stuck on this problem. Suppose I have a script called "HelloWorld. cs" inside a custom package and is inside the Packages folder. namespace Example....

View Article


type or namespace name 'ProductCatalogItem' could not be found. I know that...

using System.Collections; using System.Collections.Generic; using UnityEngine; #if !NO_IAP && UNITY_PURCHASING && (UNITY_IOS || UNITY_ANDROID) using UnityEngine.Purchasing; #endif...

View Article


Need help calling a function from another script that is inside a namespace.

I have a function that is inside of a namespace, however when one of my normal scripts runs it there is a null reference void. Do I need to also include the parameter present in the first script into...

View Article

JSON Newtonsoft >> "The type or namespace name 'Plastic' does not exist in...

Hello everyone, I recently decided to create a new project and import my previous assets (without plugins, etc.) in order to have a clean project. Among other things I had problems with the package...

View Article

How to implement namespaces

I reached this video on software architecture and trying to replicate, mainly to get familiar with the subject (I mean that I don't need to know if it's a good idea or if it may be better doing it in...

View Article


please help me. error CS0246: The type or namespace name `Player' could not...

error CS0246: The type or namespace name `Player' could not be found. Are you missing a using directive or an assembly reference? I want to make a map that allows players to move indefinitely. but as...

View Article

I updated Universal RP and now a bunch of image effect scripts are broken,...

I was having an error with URP scripts after installing a package, to solve this i updated URP which fixed the existing issue but now a bunch of image effects scripts are missing namespaces. ![alt...

View Article

UnityEngine missing Particle System Reference. Could not be found in...

I don't understand how this is possible but unity engine refused to include ParticleSystem when referenced. ![alt text][1] I have tried manually adding the assembly. As you can see it works just fine...

View Article


Can't get the new Input System to work with the Kart Microgame

I'm making a ve$$anonymous$$cle based game so i'm using the Kart Microgame as a base, since the Microgame uses the old Input System i'm trying to update it to use the new Input System, however, i...

View Article


The classes in plugin couldn't find the classes and namespaces out of plugin.

public class Unit : MonoBehaviour { public static void Test() { Debug.Log("Unity::Text()"); } } This Unit class is in normal space, out of the plugin. namespace HoneyFramework { public class...

View Article

The classes in plugin couldn't find the classes and namespaces out of plugin.

public class Unit : MonoBehaviour { public static void Test() { Debug.Log("Unity::Text()"); } } This Unit class is in normal space, out of the plugin. namespace HoneyFramework { public class...

View Article

Why the scripts in plugin couldn't find the normal class/namespace ?

public class Unit : MonoBehaviour { public static void Test() { Debug.Log("Unity::Text()"); } } This Unit class is in normal space, out of the plugin. namespace HoneyFramework { public class...

View Article

Can't access StarterAssets namespace from another script

Hello. I can't access a script from StarterAssets namespace from my inventory script, but I can do it other way around. Heres the inventory code, doesn't work neither with StarterAssets or...

View Article


VideoLibrary could not be found

I have installed VideoLibrary on Visual Studio and I don't get error from vs. But Unity says: The type or namespace name 'VideoLibrary' could not be found (are you missing a using directive or an...

View Article

Namespace error CS0246

hello i need help, i created a touch screen for the mobile phone in unity 3d. Now I've encountered the problem that I keep getting this error message: "Assets\Scripts\TouchPlayer.cs(7,12): error...

View Article


,System.IO.DirectoryNotFoundException: Could not find a parth of the path

Hola, estoy usando MRTK para un proyecto y estoy intentado usar el espacio de nombres Microsoft.MixedReality, pero me aparece que el espacio de nombres no existe en Microsoft. Quiero asumir que se debe...

View Article

The name 'LayerTohit' does not exist in the current context

public class bombscript : MonoBehaviour { public float fieldofImpact; public float force; public LayerMask LayerToHit; // Start is called before the first frame update void Start() { } // Update is...

View Article


Two necessary plugins depends on same plugins just with other version

Hey i building a game that connected to math education . i am using 2 main nuget plugins **Angorimath** **CsharpMath** the problem is that CsharpMath using old version of angourimath and that version...

View Article

Why is "using YamlDotNet.Core.Tokens;" in one of my scripts?..

Hello I just stumbled upon an unexpected build error, and when I looked into it I found this extremely strange namespace reference, namely YamlDotNet.Core.Tokens. I looked it up and found what the...

View Article

CS0234 'EditorSnapSettings' does not exist in the namespace 'Unity Editor'?

I am having this very strange error that shows up in the VS Studio Console, and it ONLY shows up in the VS Studio console, not in the Unity Console. My game works as intended, and there is no error...

View Article
Browsing index pages (398 articles)


Latest Images