- Home /
I need Line drawn in play mode to appear in editor even after exiting play mode.
So when i enter play mode i move my player (platformer) to a different position and i draw a line to track my movement i want to see this path taken in my editor after exiting play mode.
Answer by khooroko · Aug 10, 2018 at 01:52 AM
If you're using Debug.Drawline()
I think there's no way to achieve this (aside from taking a screenshot). If you're creating LineRenderers or any other Renderer then you can copy the game object in play mode, leave play mode, then paste it back into the scene.
So am using trail renderer .... how can i copy and paste this? or how can i achieve what u just described.Thank you.
I can't think of any good way for trail renderers, but you can instantiate line renderers as new gameobjects (which is what I had in $$anonymous$$d when I answered) ins$$anonymous$$d. You can also try instantiating line renderers using the positions from your trail renderer (TrailRenderer.GetPositions())
when you exit play mode using OnApplicationQuit()