Unity, Save transform values in play mode script.
Hi
Before sharing this on the unity forums I wanted to find out if any of you guys would find it useful (also I like you guys more than those "off-shore-ers").
It's kind of like doing a "copy component values" in play mode to keep the way you transformed your object during play mode after you go back into edit mode BUT it lets you save the positions for multiple Transforms.
I've been finding it very useful while in play mode to attach a trail rendered to the player, jump like madman, press pause and then place collectable items along the jump arcs.
Like I say if you find this useful, let me know so I can share it with the rest of the world.
You can get the code and instructions at (it's just some simple copy and pasting):
https://gist.github.com/mushutehk/6636510
Lastly, thanks to SIJO for letting me release this into the wild, yaaaaaaaay!
Before sharing this on the unity forums I wanted to find out if any of you guys would find it useful (also I like you guys more than those "off-shore-ers").
It's kind of like doing a "copy component values" in play mode to keep the way you transformed your object during play mode after you go back into edit mode BUT it lets you save the positions for multiple Transforms.
I've been finding it very useful while in play mode to attach a trail rendered to the player, jump like madman, press pause and then place collectable items along the jump arcs.
Like I say if you find this useful, let me know so I can share it with the rest of the world.
You can get the code and instructions at (it's just some simple copy and pasting):
https://gist.github.com/mushutehk/6636510
Lastly, thanks to SIJO for letting me release this into the wild, yaaaaaaaay!
Comments
Unless I was somehow looking at your script? (I know I've seen a script that does this before)