Esempio n. 1
0
 public static void DrawLODSlider(Rect area, IList <LODGroupGUI.LODInfo> lods, int selectedLevel)
 {
     LODGroupGUI.Styles.m_LODSliderBG.Draw(area, GUIContent.none, false, false, false, false);
     for (int i = 0; i < lods.Count; i++)
     {
         LODGroupGUI.LODInfo currentLOD = lods[i];
         LODGroupGUI.DrawLODRange(currentLOD, (i != 0) ? lods[i - 1].RawScreenPercent : 1f, i == selectedLevel);
         LODGroupGUI.DrawLODButton(currentLOD);
     }
     LODGroupGUI.DrawCulledRange(area, (lods.Count <= 0) ? 1f : lods[lods.Count - 1].RawScreenPercent);
 }
Esempio n. 2
0
 public static void DrawLODSlider(Rect area, IList <LODGroupGUI.LODInfo> lods, int selectedLevel)
 {
     LODGroupGUI.Styles.m_LODSliderBG.Draw(area, GUIContent.none, false, false, false, false);
     for (int index = 0; index < lods.Count; ++index)
     {
         LODGroupGUI.LODInfo lod = lods[index];
         LODGroupGUI.DrawLODRange(lod, index != 0 ? lods[index - 1].RawScreenPercent : 1f, index == selectedLevel);
         LODGroupGUI.DrawLODButton(lod);
     }
     LODGroupGUI.DrawCulledRange(area, lods.Count <= 0 ? 1f : lods[lods.Count - 1].RawScreenPercent);
 }