FairyGUI.Container.InvalidateBatchingState C# (CSharp) Method

InvalidateBatchingState() public method

public InvalidateBatchingState ( bool childrenChanged ) : void
childrenChanged bool
return void
        public void InvalidateBatchingState(bool childrenChanged)
        {
            if (childrenChanged && _fBatchingRoot)
                _fBatchingRequested = true;
            else
            {
                Container p = this.parent;
                while (p != null)
                {
                    if (p._fBatchingRoot)
                    {
                        p._fBatchingRequested = true;
                        break;
                    }

                    p = p.parent;
                }
            }
        }