01-12-2014, 11:31 AM
Yeah, nice. But I need the actual settings (from the Inspector, so UV settings, Extrusion mode etc...)...
Bug in Spline makes unity freeze
|
01-12-2014, 11:31 AM
Yeah, nice. But I need the actual settings (from the Inspector, so UV settings, Extrusion mode etc...)...
01-14-2014, 06:49 AM
(01-12-2014, 11:31 AM)'Jake' Wrote: Yeah, nice. But I need the actual settings (from the Inspector, so UV settings, Extrusion mode etc...)...I created a DynamicPath obj which has a component of Curvy Spline. This is the set up. http://oi44.tinypic.com/2z670if.jpg In this picture I have a high amount of splines (each yellow dot is a dot in the spline) http://oi41.tinypic.com/2a7hr0i.jpg As soon a dot is being created, I assign a CurvyMeshPath and only at the end of the drawing (when the player starts the game) I add a mesh collider. I have this MakeAPoint function which is quite long, it also gives stacks a location and info about every point (for an Undo button). Code: void MakeAPoint() This is the code for the CurvyMeshPath creation: Code: void CreateMeshBuilder() I currently can't show the CurvyMeshPath in the inspector, since every time I click on the object Unity simply crashes from unknown reason, I'll check it later and will post an image, if you need it.
01-14-2014, 08:28 AM
Ok, on a first look I see nothing weird in your code. Don't having a scene to test with makes it hard to find the bug, but let's try to nail it down. We better switch over to mail and present the results here later.
Jake
01-14-2014, 12:57 PM
Ok, for everyone having the same issue with the SplinePathMeshBuilder, here's a fix:
Open CurvySpline.cs and locate the method DistanceToTF (float distance) and insert to the following before anything else in the method's body: Code: if (Length > 0 && distance >= Length) Jake |
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
New free asset: Converter For Unity Splines | _Aka_ | 5 | 16 |
6 hours ago Last Post: _Aka_ |
|
Curvy Line Renderer for UI Spline? | gekido | 3 | 6 |
04-04-2024, 12:56 PM Last Post: _Aka_ |
|
Get position of all control points for a spline | gekido | 1 | 6 |
03-28-2024, 10:08 PM Last Post: _Aka_ |
|
Changing spline connection in inspector causes splines to revert to defaults | lacota | 3 | 6 |
03-18-2024, 07:55 PM Last Post: _Aka_ |