Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  IndexOutOfRangeException: Index was outside the bounds of the array.
#1
I am getting this error when creating skinned blueprint.

This is garment details of verts etc/

https://drive.google.com/file/d/1Zy9Tcbu...sp=sharing



IndexOutOfRangeException: Index was outside the bounds of the array.
Obi.ObiParticleEditorDrawing.DrawParticles (UnityEngine.Camera cam, Obi.ObiActorBlueprint blueprint, System.Boolean[] facingCamera, System.Boolean[] selectionStatus, System.Int32[] sortedIndices) (at Assets/Obi/Editor/Common/Blueprints/ObiParticleEditorDrawing.cs:87)
Obi.ObiActorBlueprintEditor.OnSceneGUI (UnityEditor.SceneView sceneView) (at Assets/Obi/Editor/Common/Blueprints/ObiActorBlueprintEditor.cs:301)
UnityEditor.SceneView.CallOnSceneGUI () (at <cf7d2c2e83f749e8943578126f9eff4b>:0)
UnityEditor.SceneView.HandleSelectionAndOnSceneGUI () (at <cf7d2c2e83f749e8943578126f9eff4b>:0)
UnityEditor.SceneView.OnGUI () (at <cf7d2c2e83f749e8943578126f9eff4b>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <437ba245d8404784b9fbab9b439ac908>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at <cf7d2c2e83f749e8943578126f9eff4b>:0)
UnityEditor.HostView.Invoke (System.String methodName) (at <cf7d2c2e83f749e8943578126f9eff4b>:0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <cf7d2c2e83f749e8943578126f9eff4b>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <cf7d2c2e83f749e8943578126f9eff4b>:0)
UnityEditor.DockArea.OldOnGUI () (at <cf7d2c2e83f749e8943578126f9eff4b>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Boolean straightY, System.Single pixelsPerPoint, System.Exception& immediateException) (at <95b42489e2e04430a87c3760aa29fca2>:0)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render (UnityEngine.Rect viewport, UnityEngine.Matrix4x4 projection, UnityEngine.UIElements.PanelClearFlags clearFlags) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.UIRRepaintUpdater.DrawChain (UnityEngine.Rect viewport, UnityEngine.Matrix4x4 projection) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <35bab3c7b0dc4999845bcfccc7758d96>:0)
Reply
#2
(27-05-2020, 04:16 PM)Bhavesh Wrote: I am getting this error when creating skinned blueprint.

This is garment details of verts etc/

https://drive.google.com/file/d/1Zy9Tcbu...sp=sharing



IndexOutOfRangeException: Index was outside the bounds of the array.
Obi.ObiParticleEditorDrawing.DrawParticles (UnityEngine.Camera cam, Obi.ObiActorBlueprint blueprint, System.Boolean[] facingCamera, System.Boolean[] selectionStatus, System.Int32[] sortedIndices) (at Assets/Obi/Editor/Common/Blueprints/ObiParticleEditorDrawing.cs:87)
Obi.ObiActorBlueprintEditor.OnSceneGUI (UnityEditor.SceneView sceneView) (at Assets/Obi/Editor/Common/Blueprints/ObiActorBlueprintEditor.cs:301)
UnityEditor.SceneView.CallOnSceneGUI () (at <cf7d2c2e83f749e8943578126f9eff4b>:0)
UnityEditor.SceneView.HandleSelectionAndOnSceneGUI () (at <cf7d2c2e83f749e8943578126f9eff4b>:0)
UnityEditor.SceneView.OnGUI () (at <cf7d2c2e83f749e8943578126f9eff4b>:0)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <437ba245d8404784b9fbab9b439ac908>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at <cf7d2c2e83f749e8943578126f9eff4b>:0)
UnityEditor.HostView.Invoke (System.String methodName) (at <cf7d2c2e83f749e8943578126f9eff4b>:0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <cf7d2c2e83f749e8943578126f9eff4b>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <cf7d2c2e83f749e8943578126f9eff4b>:0)
UnityEditor.DockArea.OldOnGUI () (at <cf7d2c2e83f749e8943578126f9eff4b>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Boolean straightY, System.Single pixelsPerPoint, System.Exception& immediateException) (at <95b42489e2e04430a87c3760aa29fca2>:0)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render (UnityEngine.Rect viewport, UnityEngine.Matrix4x4 projection, UnityEngine.UIElements.PanelClearFlags clearFlags) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.UIRRepaintUpdater.DrawChain (UnityEngine.Rect viewport, UnityEngine.Matrix4x4 projection) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.UIRRepaintUpdater.Update () (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.VisualTreeUpdater.UpdateVisualTreePhase (UnityEngine.UIElements.VisualTreeUpdatePhase phase) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.Panel.UpdateForRepaint () (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.Panel.Repaint (UnityEngine.Event e) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <35bab3c7b0dc4999845bcfccc7758d96>:0)

Hi,

Is the mesh 2-manifold? non-manifold meshes aren't supported by Obi, as per the docs:
http://obi.virtualmethodstudio.com/tutor...setup.html

Quote:Non-manifold meshes are not supported, if you use one the blueprint will try to identify the source of non-manifoldness and let you know via a warning message. Some non-manifold meshes will however slip trough, causing trouble down the road. Make sure that your input mesh is 2-manifold. In case you need to simulate a non-manifold mesh, use proxies.
Reply