Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by Olgo · Nov 06, 2012 at 05:14 AM · inputkeyboard

What just happened to my Unity!?

Hi guys, I was just plugging away at my project. Everything working great. I saved my player input script to test it out. All of a sudden, major errors that I've never seen before. I hit play to go to runtime, no keyboard input is recognized. I still have control over my in-game camera because it is mouse controlled.

I tried rebuilding my character's prefab, nothing. Deleting and re-adding movement scripts. nothing. reload the scene, nothing. reload the project, nothing. Build & Run, nothing. load AngryBots demo, nothing! reboot my computer and repeat everything I've tried in this paragraph thus far, nothing. reinstall Unity!! nothing!!

I wasn't able to get the original error that popped up when I first had problems, but I have 2 screen shots of the errors I see when loading AngryBots demo and my project.

This is what I see when I load my project. alt text

This is what I see when I load AngryBots Demo. alt text

Any help, much appreciated!!

wtf unity.png (79.8 kB)
wtf unity 2.png (85.0 kB)
Comment
Add comment · Show 2
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 Flynn · Nov 06, 2012 at 10:30 AM 0
Share

Did you system clock change? Did you rename your project? Do you have a folder named "Assets" in your project panel? It's late here, so sorry if these questions are useless

avatar image Olgo · Nov 06, 2012 at 03:22 PM 0
Share

Did you system clock change? nope Did you rename your project? nope Do you have a folder named "Assets" in your project panel? yup

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Kryptos · Nov 06, 2012 at 10:35 AM

Looks like your asset database is corrupted.

Try this:

  1. Enable .meta files (see Using External Version Control Systems with Unity).

  2. Close Unity.

  3. Remove everything that is inside the Library/ folder to clear the cache, preview, assetdatabase, etc.

  4. Start Unity and open your project.

  5. The asset database should be rebuilt (this will take some time, depending on the size of your project).

You may loose most of the connections between assets and prefabs if the .meta files are not properly created (due to your issue). Or you could be lucky.

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 Olgo · Nov 06, 2012 at 03:25 PM 0
Share

Thanks for the suggestion, this did not seem to have an affect though :-/

avatar image
0

Answer by Althaen · Nov 06, 2012 at 12:54 PM

These are console errors and they're telling you that some of your code is broken. Were you messing about with the example game?

Check your scripts.

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 Olgo · Nov 06, 2012 at 03:26 PM 0
Share

I did not mess with AngryBots at all, I just loaded it completely stock and it had all those compiler errors. I can't run it because of them.

avatar image
0

Answer by Flynn · Nov 11, 2012 at 09:08 PM

Unity gets confused when there is a folder named Assets in your project, you will need to rename it:

Close the project, then click on Open Project, click the find button, and click on your project folder. We open the project this way to avoid asset confusing. Then FROM WITHIN UNITY, rename the assets folder that is inside your project panel to GameAssets. (do not do it from "My Computer (windows)"/the Finder (mac), as this may lead to the wrong folder being renamed further ruining your project)

Let me know how this goes :)

To explain it, all projects are in a folder. This folder contains four folders:

Assets, Library, ProjectSettings, and Temp.

When you open a Unity project, and go to the Project panel (there is a panel in Unity named Project), that panel will display the conetns of the Assets folder. If you have a folder NAMED Assets WITHIN the original Unity Assets folder... Then Unity gets the two mixed up, and bad things happen. The solution is to make sure that none of your folders are named Assets

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

13 People are following this question.

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

Related Questions

Checking whether string is a valid Input.Key 1 Answer

A node in a childnode? 1 Answer

how to get Inputs from touch keyboard... 2 Answers

How to distinguish between multiple keyboards? 1 Answer

How can i make button on iOS instead key 0 Answers


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