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 Daniel Cazan · May 03, 2010 at 05:38 PM · gameobjectbughierarchyvisualstudio

Scripts in Hierarchy attached to empty object not showing?

Hey everyone, I don't know if this is a bug or if I am just finding a hotkey feature by accident..

So I am working in my scene a while back and I have an empty object with several scripts C# attached to it. Everything is working as fine for several months when I go to change some values and I see my object in the hierarchy but there is no arrow to expand it and see its attached scripts anymore. I panic, run the build, and all the scripts are still working - and accepting changes from Visual Studio. (using the CreateVisualStudioSolution plug-in) There were some other weird things that started at the same time, such as being told everyone one of my files was updated (as in everything in the project) and should be added to the asset server, though no matter how many times I added it or downloaded what was added, it would still give the error.

Me and the coder fumble around a bit, can't find a way to bring anything back, so I back up my project folder and copy his build (only one or two script changes that I could re-do in my sleep) and everything is good - my scripts are visible again.

Except now I go back to work on it, it was looking fine the last time, and they are gone again. The only things close to errors I got were some complaining about time not being in sink between files (when I was saving my code in Visual Studio and it was being updated in Unity - I don't recall seeing this error the last time this happened though so I don't think they are related). Again, the code runs, the scripts run, I am not getting the 'everything needs to be updated on the server' error.. I just can't see the scripts in the object in Hierarchy.

I can't submit my files due to NDA, I'll try to make a new project and see if I can consciously reproduce the error but, since they seem to appear suddenly a few months apart, I figured I'd also post this as a question in case someone had a quick 'press this' solution.

Much thanks!

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 maggot · Mar 16, 2012 at 02:03 PM 0
Share

I have a similar problem with accessing the hierarchy. Heres a comment I made to outline the problem (I don't yet have the answer) :

Just to verify that it doesn't work, I added a blank GameObject to the hierarcy, added another blank GameObject called childGameObject to the hierarchy (and dragged it to the first blank GameObject to make it a child) I attached the following script to test :

 public class testScript : $$anonymous$$onoBehaviour {
 // Use this for initialization
 void Start () {
 GameObject getTrackPlayer = GameObject.Find
 ("/GameObject/childGameObject");
 getTrackPlayer.tag = "Player";
 }
 // Update is called once per frame
 }

It didn't modify the tag

From : http://answers.unity3d.com/questions/227946/using-gameobjectfind-with-hierarchies-in-csharp.html

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Daniel Cazan · May 12, 2010 at 02:45 AM

(Issue is resolved)

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

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

1 Person is following this question.

avatar image

Related Questions

How can I access a Collider's GameObject in script? 1 Answer

Unity IDE: Finding out object type of arbitrary item in Hierarchy 3 Answers

Build does behave different to editor 2 Answers

How to get a GameObject from another GameObject 1 Answer

How to destroy all gameobjects active in hierarchy? 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