I want to implement the function of dragging a polyline.

Avatar
  • updated

I want to create a polyline and implement a drag function.

However, I know that in order to touch and drag, a collider must be attached to the line.

The line renderer in Unity has a "Bakemesh" function that automatically creates a collider so that the user can touch it.

I would like to know if the Shpaes asset has a function to create a collider.

If that's not easy, is there any function that can debug or call an event when touch or drag?

Reporting a bug? please specify Unity version:
Reporting a bug? please specify Shapes version:
Reporting a bug? please specify Render Pipeline:
Built-in render pipeline
Avatar
Rainer Lonau
Quote from Freya Holmér

right now Shapes is a rendering-only library, so it doesn't have any support for any kind of colliders or interaction, I'm afraid! You'd have to implement something like that yourself

Hi,
i asked a question regarding making Mini Metro interaction here: https://shapes.userecho.com/communities/1/topics/552-use-shapes-for-mini-metro-road-network-type-of-game
But this answer you give here means it´s not possible to use Shapes for creating the "make a metro line like in Mini Metro" then? Shapes looks awesome, but if the functionality isn´t there, I guess it´s hard to implement by myself.
Thanks

Avatar
Freya Holmér creator

right now Shapes is a rendering-only library, so it doesn't have any support for any kind of colliders or interaction, I'm afraid! You'd have to implement something like that yourself