• 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 /
This question was closed Apr 07, 2015 at 04:08 AM by MiniFish for the following reason:

unlikely that anyone have a solution for it since it's most likely to be a rare unity bug.

avatar image
0
Question by MiniFish · Sep 08, 2014 at 06:57 AM · nullreferenceexceptionobject reference

Phantom / ghost reference throwing null reference error

sometimes when i search for all objects using FindGameObjectsWithTag, it somehow creates a null clone of some object and returns that along with other found object , causing null reference exception when i try to access the array.

i've tried printing a list of found objects and it returns all viable objects, including a 'clone', but when i searched in my scene i couldn't find anything like that.

restarting unity can resolve that problem, but i'd like to know what is causing these phantom object problems because it keeps popping up now and then and having to restart unity every time is just a hassle.

so... anyone have any ideas?

Comment
Add comment · Show 3
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 Kiwasi · Sep 08, 2014 at 06:59 AM 0
Share

Nothing pops to the top of my head. If nothing comes up here consider submitting a bug report.

avatar image Malfegor · Sep 08, 2014 at 07:08 AM 0
Share

I've had this issue multiple times too. Even had a time where unity selected an object for me in the inspector, which was not even present in the scene (I guess this is also your issue). I've not found any way to deal with this, so I've got to agree with Bored$$anonymous$$ormon: a bug report might just be the only solution. Very eager to see IF anyone solved this.

avatar image MiniFish · Sep 09, 2014 at 02:23 AM 0
Share

just submitted a bug report to unity, like what Bored$$anonymous$$ormon suggested.

interesting note: i ran into this problem again and guess what happens? this time it creates even more phantom clones. talk about getting trolled, ha.

0 Replies

  • Sort: 

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Material[] Object reference not set when instantiating 2 Answers

NullReferenceException... 1 Answer

Nullreference Exception with ScriptableObject 0 Answers

LitJson not working 0 Answers

Object reference not set to an instance of an object 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