07-08-2021, 11:44 AM
Hi,
I'm using UITextSplineController to make Text follow a spline, but I get an error when I type a Whitespace character.
Is it possible to use Whitespace characters? Is there a solution?
I'm using UITextSplineController to make Text follow a spline, but I get an error when I type a Whitespace character.
Is it possible to use Whitespace characters? Is there a solution?
Code:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <695d1cc93cca45069c528c15c9fdd749>:0)
FluffyUnderware.Curvy.Controllers.UITextSplineController+GlyphQuad.LoadTris (System.Collections.Generic.List`1[T] verts, System.Int32 index) (at Assets/Curvy/Plugins/Curvy/Controllers/UITextSplineController.cs:56)
FluffyUnderware.Curvy.Controllers.UITextSplineController.ModifyMesh (UnityEngine.UI.VertexHelper vertexHelper) (at Assets/Curvy/Plugins/Curvy/Controllers/UITextSplineController.cs:252)
UnityEngine.UI.Graphic.DoMeshGeneration () (at /Applications/Unity/Hub/Editor/2020.3.7f1/Unity.app/Contents/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/Graphic.cs:675)
UnityEngine.UI.Graphic.UpdateGeometry () (at /Applications/Unity/Hub/Editor/2020.3.7f1/Unity.app/Contents/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/Graphic.cs:660)
UnityEngine.UI.Text.UpdateGeometry () (at /Applications/Unity/Hub/Editor/2020.3.7f1/Unity.app/Contents/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/Text.cs:572)
UnityEngine.UI.Graphic.Rebuild (UnityEngine.UI.CanvasUpdate update) (at /Applications/Unity/Hub/Editor/2020.3.7f1/Unity.app/Contents/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/Graphic.cs:618)
UnityEngine.UI.CanvasUpdateRegistry.PerformUpdate () (at /Applications/Unity/Hub/Editor/2020.3.7f1/Unity.app/Contents/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/CanvasUpdateRegistry.cs:217)
UnityEngine.Canvas:SendWillRenderCanvases() (at /Users/bokken/buildslave/unity/build/Modules/UI/ScriptBindings/UICanvas.bindings.cs:83)