/// <summary> /// Adds the item. /// </summary> /// <param name="icon">Item toolbar button icon</param> /// <param name="item">Item.</param> public void AddItem(Texture2D icon, SA_iLayoutElement item) { AddItem(new GUIContent(string.Empty, icon), item); }
/// <summary> /// Adds the item. /// </summary> /// <param name="toolbarButtonContent">item toolbar button content.</param> /// <param name="item">Item.</param> public void AddItem(GUIContent toolbarButtonContent, SA_iLayoutElement item) { m_items.Add(item); m_toolbarContent.Add(toolbarButtonContent); }
/// <summary> /// Adds the item. /// </summary> /// <param name="text">Item toolbar button text</param> /// <param name="item">Item.</param> public void AddItem(string text, SA_iLayoutElement item) { AddItem(new GUIContent(text), item); }