I am making a game and I just wanted to walk around the terrain using the Standard Asset FPS First person camera character. however, when I place it on unity it gives me this errors
1.) Assets/Standard Assets/Utility/PlatformSpecificContent.cs(15,23): error CS0234: The type or namespace name Build does not exist in the namespace UnityEditor. Are you missing an assembly reference?
2.) Assets/Standard Assets/CrossPlatformInput/Scripts/MobileControlRig.cs(13,23): error CS0234: The type or namespace name Build does not exist in the namespace UnityEditor. Are you missing an assembly reference?
I have no idea what they mean, can someone give me a clue?
I am using Unity 5.4 personal.
Thank you in afdvance.
The package Build was introduced to the UnityEditor namespace in version 5.6. You will need to change those references, or much more easily, update your Unity version to at least 5.6.
Related
I upgraded my project to Unity 2021 and have tons of the same error:
error CS0246: The type or namespace name could not be found (are you missing a using directive or an assembly reference?)
This is for both packages and my own scripts. I added an assembly definition in my main scripts folder and tried to add a reference but I couldn't find the proper one to fix any issue.
For example, I'm using the RootMotion FinalIK and PuppetMaster assets. All scripts referencing these have using RootMotion.FinalIK and using RootMotion.Dynamics However, the script doesn't recognize RootMotion.Dynamics and every variable type using RootMotion.FinalIK cannot be found.
Any ideas?
The fix was to just restart Unity and VSCode.
This is my first Unity project and since I know a bit about Watson, I thought I would start with that.
But when I create a new project and import the Watson Unity SDK assets into the Mono environment I get errors like :
Assets\unity-sdk-core-0.2.0\unity-sdk-core-0.2.0\Utilities\FrameRateCounter.cs(20,19): error CS0234: The type or namespace name 'UI' does not exist in the
namespace 'UnityEngine' (are you missing an assembly reference?)
When I create a new C# script in the scenes folder, the assembly reference for UnityEngine.UI can be found.
When I open the FrameRateCounter.cs file in Visual Studio, I don't get this message.
I am running version 2019.3.0a3 Personal of Unity
Today I was searching internet for Unity Runtime Level Editor and i found GILES. I imported it and set API Compatibility Level to .NET 2.0, but I canĀ“t solve this error:
Assets/GILES/Settings/pb_Config.cs(75,36): error CS0234: The type or namespace name Director does not exist in the namespace UnityEngine.Experimental. Are you missing an assembly reference?
This error appear in this piece of code:
typeof(UnityEngine.Experimental.Director.DirectorPlayer),
Here is full source of this file on GitHub.
I am using Unity version 2017.1.0f3. Is there any way to fix it? What I am missing?
UPDATE:
I searched in actual Unity documentation and it seems that UnityEngine.Experimental.Director was removed. Is there any alternative or way to use it in new Unity?
I think it is now UnityEngine.Playables.PlayableDirector
We have a Unity 5 program running well with Oculus Rift + Leap Motion on a Windows 7 computer. We tried to have the same program running on another computer with Windows 10, but these following errors showed up.
Could any of you provide some suggestions? Thanks a lot! (ps. Oculus Rift and Leap Motion are running well on the Win10 computer with a separate Unity project: the package called "Core Assets" from Leap Motion that shows both Oculus and Leap Motion connections.)
Thanks!
The error messages in Unity are:
Assets/LeapMotion/Scripts/Hands/DebugFinger.cs(14,28): error CS0246: The type or namespace name `FingerModel' could not be found. Are you missing a using directive or an assembly reference?
Assets/LeapMotion/Scripts/Hands/PolyFinger.cs(13,27): error CS0246: The type or namespace name `FingerModel' could not be found. Are you missing a using directive or an assembly reference?
Assets/LeapMotion/Scripts/Hands/PolyHand.cs(17,25): error CS0246: The type or namespace name `HandModel' could not be found. Are you missing a using directive or an assembly reference?
Assets/LeapMotion/Scripts/Hands/RiggedFinger.cs(17,29): error CS0246: The type or namespace name `FingerModel' could not be found. Are you missing a using directive or an assembly reference?
Assets/LeapMotion/Scripts/Hands/RiggedHand.cs(12,27): error CS0246: The type or namespace name `HandModel' could not be found. Are you missing a using directive or an assembly reference?
The error messages pretty much sum it up: these classes are not present in your project. It seems unlikely that the project on the Win 7 computer is exactly the same as the project on the Win 10 computer -- these are compile errors after all. My guess is that you are using an earlier version of the Leap Motion assets on the computer that works and the Orion version on the other computer. None of the classes shown in the error messages are included in the newer, Orion assets. (Even if you upgraded the assets on the Win 7 computer, it may still contain the older files, and classes that depend on them.)
The problem is that Leap Motion company made a mistake releasing the Unity SDK. They build it in the wrong framework. You may be able to run the project in unity but not to debug it with Visual Studio.
The company said that they will release an update of the SDK without any problems, we'll have to wait. Until that moment you can keep coding and use the Debug.Log function to debug at real time.
You can find more info in here:
https://community.leapmotion.com/t/cannot-compile-unity-c-script-if-i-use-leap-motion-orion-4-1-3/5514
I'm trying to create a new variable with:
public Text customText;
To use the type Text, I need to include:
using UnityEngine;
using UnityEngine.UI;
But this reference doesn't exist in my list of references on MonoDevelop.
I download it manually and added the reference manually; now I can use the Text type and import the UnityEngine.UI.
Well, here is the issue. When I compile my solution, on MonoDevelop I get this error:
Error: The compiler appears to have crashed. Check the build output pad for details. (Assembly-CSharp).
But on Unity3D I get the error:
Assets/UI/Scripts/HudController.cs(2,19): error CS0234: The type or namespace name `UI' does not exist in the namespace `UnityEngine'. Are you missing an assembly reference?
The dll UnityEngine is by default in the list of references, but not the UnityEngine.UI.
What I'm doing wrong?
I've faced this problem. Actually i've seen few solutions, but they helped me for only few launches of Unity.
Here is the links:
1) http://forum.unity3d.com/threads/unityengine-ui-dll-is-in-timestamps-but-is-not-known-in-assetdatabase.274492/#post-2015083 (post by j.robichaud)
2) http://answers.unity3d.com/questions/847994/unityeditorui-reference-missing.html
I hope any of it will help you.
In my case only reinstall was the cure. :)