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 Elmekior · Oct 09, 2013 at 06:31 PM · sceneviewbugs

Scene view being grayed out while changing gameobject active

Hi!

I'm a programmer and I have stumbled on a weird problem, I am currently working on a animator tool inside Unity. As english is not my main language, I will try to explain the situation thoroughly and I apologize if things are not clear, just ask and i'll try to clarify.

I use a monobehavior script that active and desactivate GameObjects depending on a text file. (text file just tells me the GameObjects that need to be present in the scene, those gameObjects have no script attached, they are only props and terrain objects (house, tree, etc) you get the pictures). This script is attached to an empty Gameobject inside the scene.

So, when I use my script to make those active / non active, the scene view of Unity is all greyed out. Only gizmo's like the 3-d mover, scale, camera sign, are visible. BUT the thing is that on the game view, I can see what the camera see, meaning everything. It is like the scene view crashed or something. Just to point that out, my script needs to be in play mode to work since I need to play animations, but that should not really be a problem since you can play with the gameobject.

I did a google search (yeah I actually did), and tried different approach. I made sure that the layer were all at default to see everything. I tried repainting the sceneview during each call of OnGUI (didn't care for performance, just wanted to see if it would actually work). I tried installing the latest driver, Updated Windows, rebooting the computer but the problem is still there. I can't update Unity for now because of the current pipeline (i'm stuck at version : 4.1.2f1)

The ONLY way I could make the scene refresh itself, was by clicking on the inspector in the editor and pressing the Space bar to maximize the inspector and pressing space again to reduce the inspector view to the normal size. Also, closing and re-opening the scene tab also solves it but that does not really solves my problem because I would like to find a permanent

Here is the script that I use to activate and desactive the Gameobjects, but I don't think that this is the problem because it does happen sometimes when I manually activate and desactivate GameObject in the inspector.

GameObject[] l_oaGameObjects = Resources.FindObjectsOfTypeAll( typeof( GameObject ) ) as GameObject[];

foreach ( GameObject l_oGameObject in l_oaGameObjects ) { if ( l_oGameObject.transform.parent == null && !l_oGameObject.name.StartsWith("AnimationEngine") ) { l_oGameObject.SetActive( in_slShotAssets.Contains( l_oGameObject.name ) || in_oShotToRender.m_slSetAssets.Contains( l_oGameObject.name ) || m_slDefaultAssets.Contains( l_oGameObject.name ) ); } }

Your help would be really appreciated because I am litterally stuck because of this problem and I know the community might be able to help me!

Elmekior

Comment
Add comment
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

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

15 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

Related Questions

Why is Unity deleting my prefabs!? 1 Answer

Why am I getting such strange rotation values when using Quaternion.Euler? 1 Answer

Application.OpenURL crashes on android 0 Answers

progress bar script Load level :( HELP 0 Answers

How to get enemies to slowly approach first person controller 2 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