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…

1 Answer

1

You need a bitwise OR (|) operator.

obj.hideFlags = HideFlags.HideInHierarchy | HideFlags.HideInInspector;

thanks for your reply. it worked...