When I set my draggable to a Drag Trac_Curved type and set the "Is looped" on I get this error:=================================================================
UnassignedReferenceException: The variable maxCollider of Moveable_Drag has not been assigned.
You probably need to assign the maxCollider variable of the Moveable_Drag script in the inspector.
AC.DragTrack.AssignColliders (AC.Moveable_Drag draggable) (at Assets/AdventureCreator/Scripts/Moveable/DragTrack.cs:28)
AC.DragTrack_Curved.Connect (AC.Moveable_Drag draggable) (at Assets/AdventureCreator/Scripts/Moveable/DragTrack_Curved.cs:72)
AC.Moveable_Drag.Start () (at Assets/AdventureCreator/Scripts/Moveable/Moveable_Drag.cs:72)
==================================================================
Any idea if it's a bug or if i'm doing something wrong?
If I set the track to not loop but to a figure like 60 or 200 degrees the draggable does work but I get other errors which aren't related to this one (apparently). I will begin a new thread for those ones.
I'm on Unity 5.1.0f3 and using AC v1.46 (update: checked 1.46a and no different)
Comments
if (draggable.minCollider == null || draggable.maxCollider == null) return;
Does that solve it?