08-21-2024, 08:28 AM
Hi,
The TransformSpots list is of the following type: List<TransformSpot>. So you can't add a GamObject to it, you have to add a TransformSpot. Thus the error you got.
Now, you indeed can't create a TransformSpot via API. This is something I missed, thanks for pointing that to me.
I will fix this in the next update, but until then, here is how you can fix it yourself:
Let me know if this didn't work.
The TransformSpots list is of the following type: List<TransformSpot>. So you can't add a GamObject to it, you have to add a TransformSpot. Thus the error you got.
Now, you indeed can't create a TransformSpot via API. This is something I missed, thanks for pointing that to me.
I will fix this in the next update, but until then, here is how you can fix it yourself:
- Go to the definition of the TransformSpot struct (in \Assets\Plugins\ToolBuddy\Assets\Curvy\Scripts\CG Modules\InputTransformSpots.cs)
- Add to it the following constructor definition:
Code:public TransformSpot(
int index,
Transform transform)
{
this.index = index;
this.transform = transform;
} - Use the newly available constructor to add instances of TransformSpot to the TransformSpots list.
Let me know if this didn't work.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Please consider leaving a review for Curvy, this helps immensely. Thank you.

