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
4
Question by troien · May 17, 2015 at 07:53 PM · activeinactive

GameObjects deactivate when Unity starts

Sinse a few days, I've had a weird problem with some of my gameobjects. Basically what happens is that whenever I close Unity and then start it again, some of my gameobject are 'deactivated'. They are gray in the Hierarchy and in the inspector. And they are invisible in the scene view and game view aswell. Although the checkbox in the inspector indicates that they are active.

Inactive gameobjects

To clarify, I'm not calling SetActive anywhere in my own code.

I can reactivate them by hitting the checkbox in the inspector twice (first disabling them then enabling them). But when I then close and open Unity, they are disabled again...

So my question is: Is this a (known) bug in Unity or could there be anything else that you can do in code that can cause this weird behaviour? And also, are there more people who have this problem aswell and if so, is there something I can do to stop Unity from deactivating my gameobjects (Other then adding a script that executes in edit mode and forces my gameobject to be active on startup)

activeinactive.png (23.6 kB)
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 RLin · May 18, 2015 at 12:17 AM 1
Share

Check your assets to see if the asset itself is disabled. I've had a problem like this before.

avatar image abi-kr01 · May 18, 2015 at 04:52 AM 0
Share

its not deactivated the prefab itself is empty

avatar image troien · May 18, 2015 at 08:17 PM 0
Share

@RLin I did just now, and this is what the prefab looks like. I can't find anything unusuall about it. Futhermore, I actually have 3 of those containers filled wit these prefabs, and only one of the containers has these 'disabled' GameObjects. The others work as intended.

@abi.kr01 Well, the prefab itself wasn't empty. In case of the equals button is was a blender file. in the other case it was an actual prefab as can be seen in the image below.

screenshot of prefab (Yes this is the prefab)

Both thanks for pointing out that this has to do with the prefab, as it is indeed fixed when I do 'GameObject' --> 'Break Prefab Instance'.

However, I kinda want to use prefabs here :p Is there a reason that anyone knows of, why this is happening to these specific instances of this prefab in my scene?

prefabscreenshot.png (12.4 kB)

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

21 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Help Activating/Deactivating all Game Objects with same tag 1 Answer

Best way to keep track of inactive GameObjects? 1 Answer

Activate gameobject that is deactivated with c# 2 Answers

How to find Inactive GameObject 16 Answers

Why won't my object activate? 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