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
1
Question by Bluestrike · Nov 07, 2011 at 03:35 PM · error

The referenced script on this Behaviour is missing! on empty scene

I have three of these errors. But they remain, even when I delete eveything thats in the hierachy for that scene.

Comment
Add comment · Show 4
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 timsk · Nov 07, 2011 at 03:44 PM 0
Share

Could you copy + paste the errors for us?

avatar image RanRanRu · Nov 07, 2011 at 03:46 PM 0
Share

You deleted a script that was used in a prefab or object somewhere?

avatar image Bluestrike · Nov 07, 2011 at 05:04 PM 0
Share

The referenced script on this Behaviour is missing! Thats all I get to work with, usually this means a object in the scene is missing a script, wish the error would at least say what object the error is on. Usually I can find it by deleting objects in the hierachy untill its gone to get a global idea where I have to look. But now I can delete everything and this error remains.

Its the only scene in my game that has this error.

avatar image Karsnen_2 · Dec 06, 2011 at 02:56 AM 0
Share

I got the similar one. It also comes in as three errors. All same. But it popped up after Unity Engine Crashed.

6 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by Bluestrike · May 25, 2013 at 07:55 AM

My issue was caused by a script setting a gameobject its hideflag to invisible in hierachy. And since it was a emtpy gameobject with a script I had no visual location in the scene vieuw either. Deleting the script did not reset the gameobects hideflags. I simply wrote a script that made all gameobjects hideflags to default in the scene. And could then select them from the hierachy to delete them. I would post it but I can't find where I placed it :/

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
1

Answer by Karsnen_2 · Dec 06, 2011 at 03:00 AM

Okay I got it working. I will let you know my solution. But it may not be the same for you too.

I created script (say 'A') and it attach it to a prefab. Now this prefab was attached to the script (say 'B') which says there is an error. But later I happen to delete the A script from the project folder but I did not remove the component from the Prefab.

So I removed it. It kinda worked.

Hope it is kinda the same for you too.

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
1

Answer by AFrisby · Dec 17, 2011 at 12:44 AM

I managed to get this too - but I found a workaround of sorts.

Hit CTRL+A to select everything in the scene; then in the heirachy, unselect everything using CTRL+CLICK on each item (this takes a while. :|), then delete.

Somehow CTRL+A manages to select the item, even though it is invisible to the heirachy.

Hopefully this helps someone else out too.

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 Bluestrike · Dec 19, 2011 at 10:03 AM 0
Share

Thanks ctrl + a indeed selects whatever the problem is. But unselecting everything by hand will take a day and it looks like unity does not support (un)selection of an entire tree at one.

avatar image
0

Answer by DaveA · Nov 07, 2011 at 06:34 PM

At that point, I would leave the scene empty, delete the scene, and start again. Hopefully you have backups, so you could copy/paste from the backup to the new scene keeping an eye out for that error. Seems like something in a 'cache' or something. But also, do you have an Editor scripts which may depend on something that got deleted?

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 ramiam · May 24, 2013 at 11:30 PM

add capsule collider in player

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
  • 1
  • 2
  • ›

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

Assets/Scripts/PlayerController.cs(22,25): error CS8025: Parsing error 0 Answers

need help, with greater than statment 1 Answer

Another Null Reference Exception 0 Answers

unity error error CS1525: Unexpected symbol `(', expecting `identifier' 2 Answers

The name `DebugUtils' does not exist in the current context 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