private void TabMonster() { TestMonster[] monsters = m_Database.Monsters; if (monsters == null || monsters.Length == 0) { return; } m_MonsterScrollView = GUILayout.BeginScrollView(m_MonsterScrollView, new GUILayoutOption[] { GUILayout.MaxHeight(700f) }); foreach (TestMonster testMonster in monsters) { if (GUILayout.Button(testMonster.Name, m_leftAlignedBtnStyle, new GUILayoutOption[0])) { m_Main.LoadMonster(testMonster); } } GUILayout.EndScrollView(); }