i get this error
ArgumentOutOfRangeException: Index is less than 0 or more than or equal to the list count.
Parameter name: index
8
System.Collections.ArrayList.ThrowNewArgumentOutOfRangeException (System.String name, System.Object actual, System.String message) (at /Applications/buildAgent/work/3df08680c6f85295/mcs/class/corlib/System.Collections/ArrayList.cs:3261)
System.Collections.ArrayList.get_Item (Int32 index) (at /Applications/buildAgent/work/3df08680c6f85295/mcs/class/corlib/System.Collections/ArrayList.cs:2652)
UnityScript.Lang.Array.get_Item (Int32 index)
LODSystemEditor.CollapseTest () (at Assets/LODSystem/Editor/LODSystemEditor.js:314)
LODSystemEditor.ComputeProgressiveMesh () (at Assets/LODSystem/Editor/LODSystemEditor.js:699)
LODSystemEditor.PreCalculate (UnityEngine.Mesh tmpMesh) (at Assets/LODSystem/Editor/LODSystemEditor.js:464)
LODEditor.OnInspectorGUI () (at Assets/LODSystem/Editor/LODEditor.js:307)
UnityEditor.InspectorWindow.DrawEditors (Boolean isRepaintEvent, UnityEditor.Editor[] editors, Boolean eyeDropperDirty)
UnityEditor.DockArea:OnGUI()
with this piece of code
for (i = u.face.length - 1; i >= 0; --i) {
uFace = u.face*;*
-
if (uFace.HasVertex(v)) {*
-
uFace.deTriangle( his ); // é£æ¥ãããªãã¡ã¬ã³ã¹ãé¤å¤*
-
}*
- }*
this script is a lod system from http://www.macroseed.com/Projects/Unity/Level_of_Detail_System
please help i need this script to work
Thanks Dj
UPDATE : i put a debug.log to display u.face.length and it displayed i and u.face.length as 5