Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by westingtyler · Oct 09, 2016 at 07:49 AM · ainamespace

error: `AI' does not exist in the namespace`UnityEngine'

I am getting an error regarding a script in Unity 5.4.0b24.

Assets/Standard Assets/Character Controllers/Sources/Scripts/AICharacterControl.cs(10,28): error CS0234: The type or namespace name AI' does not exist in the namespace `UnityEngine'. Are you missing an assembly reference?

removing this script from my project causes playmaker to give 72 errors like "pathfinding" stuff, so I can't just delete this script.

any idea how to correct this error?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Inok · Oct 09, 2016 at 10:55 AM 0
Share

If you open project in older version after opening it in newer you not avoid problems, so before try new beta version make backup of project. Not sure how fix error.

3 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Wiseman17 · Dec 26, 2016 at 06:25 AM

I guess it's a mixup during Unity changing versions or between Pro and Personal versions.

Had the same problem. In my case Unity could not find

 UnityEngine.AI.NavMeshAgent

Solved by pointing all the references to

 UnityEngine.NavMeshAgent

instead.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Globalglover · Aug 31, 2017 at 04:01 PM 0
Share

Thank You @wiseman17

avatar image
0

Answer by westingtyler · Oct 10, 2016 at 07:12 AM

I eliminated the editor error by removing the AI script, removing the Playmaker Pathfinding folder whose actions then freaked out, removing the Playmaker script NavMeshAgentAnimatorSynchronizer.cs that also freaked out, then removing the folder for the Energy Bar Toolkit that also freaked out.

Now everything seems to work fine, but I might have deleted something I will later need or that could pop up at any time. If anyone has an insight into how to add "AI" to the namespace 'UnityEngine' that would be the real solution.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by moyrac · Feb 01, 2018 at 04:07 PM

using System; using UnityEngine;

this works for me in Unity 5.3

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Performance implications of namespaces in Unity. 2 Answers

Maya Import Strip Namespaces 6 Answers

namespace UnityEditor could not be found 0 Answers

Can I declare a namespace in my custom C# script 2 Answers

Two assets using the same namespace..what to do? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges