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 Leroterr · Feb 20, 2015 at 02:02 PM · errorexceptionconsolewarningwarnings

Get rid of certain warnings on the console.

Is there a way I can remove certain warnings on my Console? Like, just hide them or something. I've tried googling but can't find any.

And the reason I'm doing this is because I used SetActiveRecursively instead of SetActive. Unity is saying that SetActiveRecursively is useless because SetActive is now also inherited by children, but that doesn't seem to be the case for me. When I use SetActive to activate my object, it doesn't really activate the children of that object, while in SetActiveRecursively, it does. So everything is now working fine and properly, but I just wanted to get rid of the annoying warnings that comes up on my console everytime I build.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Owen-Reynolds · Feb 20, 2015 at 02:58 PM

Read about how the new Active system works. I know there are good explanations here, from when they first made the change, if you can find them.

Briefly, with the new system, you never have to do anything recursively. It's like directory persmissions. If you happen to have all inactive children, you'd need SetActiveRecursively to get them back, but there's no need to have that situation at all.

I was in a similar situation, when they changed. What will happen is, you'll want to make a few changes to your code, and will realize that a total rewrite using the new SetActive() will be faster and less buggy.

Comment
Add comment · Show 2 · 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
avatar image Leroterr · Feb 20, 2015 at 03:06 PM 0
Share

So SetActiveRecursively is slow and buggy?

Also, why doesn't my SetActive code activate the children of the object I'm activating? What are the 'changes' I should make to my code to make it work without using SetActiveRecursively?

avatar image Owen-Reynolds · Feb 21, 2015 at 12:33 AM 0
Share

"Read about how the new Active system works. I know there are good explanations here, from when they first made the change, if you can find them."

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

Compiler Warnings Are Now Errors 0 Answers

UnauthorizedAccessException | I Need Help Here. 1 Answer

Operator '*' cannot be used with a left hand side ....... 1 Answer

Warning messages are turning into Internal Compiler Errors...? 6 Answers

throw exception override stacktrace double click log 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