//描画用頂点データリストを作成 List <UIVertex> CreateVertexList(List <UguiNovelTextLine> lineList, int max) { List <UIVertex> verts = new List <UIVertex>(); if (lineList == null || (max <= 0 && lineList.Count <= 0)) { return(verts); } int count = 0; UguiNovelTextCharacter lastCaracter = null; foreach (UguiNovelTextLine line in lineList) { if (line.IsOver) { break; } for (int i = 0; i < line.Characters.Count; ++i) { UguiNovelTextCharacter character = line.Characters[i]; character.IsVisible = (count < max); ++count; if (character.IsBr) { continue; } if (character.IsVisible) { lastCaracter = character; if (!character.IsNoFontData) { verts.AddRange(character.Verts); } endPosition = new Vector3(lastCaracter.EndPositionX, line.Y0, 0); } } } Additional.AddVerts(verts, endPosition, this); return(verts); }