Hi, I’m trying to pause a Trail Renderer to hide it when the object is teleporting, but the Clear() function deletes the hole trail, that’s not what I want
Also, when I change something on the Trail Renderer it’s always executing before the teleportation so it’s useless…
Here’s what it looks like for now :
Here’s the code running in the video :
void Teleport(Vector2 pos){
transform.position = pos;
GetComponent<TrailRenderer>().Clear();
}
I’d like the trail to do something like that :