- Home /
 
              This question was 
             closed Jun 08, 2013 at 10:45 PM by 
             qwee for the following reason: 
             
 
            The question is answered, right answer was accepted
Use more than a hideflag
How can i use more than a hideflag in the same object in C#?
Example:
 obj.hideFlags = HideFlags.HideInHierarchy + HideFlags.HideInInspector;
 
               Thanks in advance...
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Tomer-Barkan · May 21, 2013 at 09:09 PM
You need a bitwise OR (`|`) operator.
 obj.hideFlags = HideFlags.HideInHierarchy | HideFlags.HideInInspector;
 
              Follow this Question
Related Questions
When do you use DontSave for Object's hideFlags? 2 Answers
make an object slowly appear 2 Answers
How to check if there´s an object at position 1 Answer
Trouble grabbing and holding a cube. 0 Answers