• 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
-2
Question by upkto · Jul 01, 2013 at 07:49 PM · gameobject

lifetime gameObject.SetActiveRecursively() ?

how much time do I have before you finally ubirete function gameObject.SetActiveRecursively() ?

Comment
Add comment · Show 2
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 upkto · Jul 02, 2013 at 08:10 AM 0
Share

Seeking a response from the unity developers. I do not need to solve the problem, I need a simple answer

avatar image Julien-Lynge · Jul 02, 2013 at 03:28 PM 0
Share

I'm not 100% sure why your question was downvoted, but I'm guessing it's either because:

  • This is a community website, not a place for customer service. The folks here don't work for Unity

  • UnityAnswers is for technical questions with specific answers - for questions about developing with Unity. Your question probably isn't appropriate.

I personally would not downvote it - it's not totally appropriate for this site, but it is Unity-related.

To answer your question (about a response from the developers): Unity isn't going to tell you when they'll actually remove the function, but it probably won't be for at least a couple releases, perhaps even after Unity 5.0 comes out. Unity's policy is not to discuss upco$$anonymous$$g feature changes. If they have deprecated a function, you use it at your own risk.

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Julien-Lynge · Jul 01, 2013 at 07:55 PM

I don't work for Unity, but I'm curious: are you worried about it going away, or are you looking forward to it? If you're worried, you can write your own method to accomplish the same thing in just a couple of lines. If you're looking forward to it, just don't use it :)

example code, an extension method that needs to go in a static class:

 public static void MySetActiveRecursively(this GameObject go)
 {
   Transform[] children = go.GetComponentsInChildren();
   foreach (Transform child in children)
     child.gameObject.SetActive(false);
 }
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.

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

16 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

Related Questions

using Contains(gameObject) to find and destroy a gameObject from a list 2 Answers

Lightning with random intervals 2 Answers

How to detect an object which be in FOV of certain camera ? 1 Answer

Changing a variable across multiple instances of a GameObject 1 Answer

good resource about conserving memory when multiple levels share resources? 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