I use MonoBehaviour.InvokeRepeating to call a function every few seconds.
If I load the next scene, will the Invocation get cancelled automatically or I have to cancel it manually using MonoBehaviour.CancelInvoke?
(I haven’t called Object.DontDestroyOnLoad on any object of the initial scene, I’m just wandering if invocations are going on in the background in the new scene, thus needlessly consuming resources)
What happens if you try it?
– Eric5h5I tried it (I put a Debug.Log line inside the invoked method) and it seems to get cancelled after a new scene is loaded.
– schwertfischHi, sry I' confused, can you clear this up: your comment is opposite from initial Question: > I want the texture to not move along the line. vs > I want the trail to be a line with my texture (Like in the Trail Renderer). Also *.gifs that you attach are not trail render thing. They are emission through distance.
– privatecontractor