public GUILayer(GUIForm form, GUILayerType type) { LayerType = type; m_order = (int)type; m_form = form; m_bufferRect = form.GraphicsBind.CreateBuffer(256); m_bufferRectDynamic = form.GraphicsBind.CreateBuffer(256); m_bufferText = form.GraphicsBind.CreateBuffer(256); m_bufferTextDynamic = form.GraphicsBind.CreateBuffer(256); m_rootView = new GUIView(); m_rootView.Rect = Vector4.zero; m_rootView.Layer = this; actionBeforeUpdate = new GUIDelayAction(); }
public bool RemoveView(GUIView view) { return(m_rootView.RemoveSubView(view)); }