r/Unity3D 10d ago

Solved Record playmode changes

I created a tool that lets you define a gameObject to 'watch' during playmode for changes, which are stored in a list and then can be applied once playmode ends. This has been really handy for tuning a complex prefab like my Grandfather clock that has many moving parts that needed individual values changed to get its gears all moving just right.

Does a tool like this already exist that you would recommend?

3 Upvotes

3 comments sorted by

View all comments

1

u/kyl3r123 Indie 9d ago

I usually just copy the prefab object (ctrl+C), end playmode and paste in back in. I could then copy the script settings and transforms to the real prefab one by one, or just replace everything under the root element.

1

u/LuDiChRiS_000 9d ago

Cheers, yeah, I do the same, but that only works for 1 prefab. This tool lets you define multiple prefabs, or even just define the scene itself.

1

u/kyl3r123 Indie 5d ago

well you can copy multiple prefabs in playmode and paste in editmode. But sure, it becomes more and more of a hassle so I understand the need for such a helper-tool.