コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 /// <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);
 }