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
0
Question by SuperKael · Aug 12, 2016 at 03:17 PM · errorgameobjectmissing

The referenced script on this Behaviour is missing! non-existant GameObject

I was testing out a gameobject I created that, among other things, would destroy any other gameobject that touched it that used the interface, "Resource." shortly after I allowed it to destroy a test object, my console was spammed with "The referenced script on this Behaviour is missing!" however, when I double-click the error in console, on the inspector bar, it would show a non existant gameobject. It had no name, and the only attached component was a Script, called "None (Mono Script)." this non existant gameobject cannot be located anywhere in the scene, and only seems to exist when I double-click the error in console. any ideas as to what the heck could be going on?

Edit/Followup: I fixed this issue, or more accurately, it got fixed and I don't know why. however, I am still getting the same warning/ghost gameobject for other reasons as well. for instance, My game locks and hides the cursor using Cursor.lockState, and the lock can be temporarily removed by holding left control. However, sometimes if I tab out of then back into the unity editor, the cursor will be visible, but stuck in the center of the game window. If I attempt to move the cursor while this is happening, it teleports back to the center of the window. All the while, the console is spamming "The referenced script on this behaviour is missing!" In order to unstick it, I can either left click, or press left control. any idea what could possibly be causing this?

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 EDevJogos · Aug 13, 2016 at 07:06 PM 0
Share

No way to be sure but, you probably destroyed the Script and not the gameObject, note if you do this: Destroy(Character) ins$$anonymous$$d of Destroy(Character.gameObject) you will destroy only the Script Character attached to the gameObject not the gameObject itself.

0 Replies

· Add your reply
  • Sort: 

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

missing gameobject ≠ Null? 1 Answer

Why don't my gameobjects load in when I export my game to webgl?,Why don't any of my objects render when I export my game to webgl? 0 Answers

Compilor Error using Dictonary collection 1 Answer

NaN exception when spawning soldiers 1 Answer

[HELP!!] Files all missing while I update the version from Unity 2018.3.12f1 to Unity 2019.1.4f1 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