sbox-issues icon indicating copy to clipboard operation
sbox-issues copied to clipboard

Saving Changes while made in Play Mode

Open Retroeer opened this issue 1 year ago • 2 comments

For?

S&Box

What can't you do?

I'd like to be able to build my levels while controlling my character, this is pretty nice in movement based games because it lets you design a level and be able to test if you can even make that jump in real-time. S&Box doesn't really allow for this unfortunately, as any changes you make to your scene get wiped after ending playmode

How would you like it to work?

Ideally (in my opinion), upon starting Play Mode, all GameObjects within the hierarchy should be given a checkbox next to them, checking this will save that GameObject (Positions, Components, Etc) and bring them back into Edit Mode. Or something to this effect 😄 image image

What have you tried?

I've tried copying and pasting GameObjects, but this feels kinda weird, not as seamless as i would prefer, but maybe this is fine for everyone else.

Additional context

No response

Retroeer avatar Jan 19 '24 04:01 Retroeer

This would be useful, I'm not sure the checkboxes would be the best way to go about it though. The actual implementation needs thinking out a bit more.

I could imagine, for example, right clicking and going to "apply to scene", on GameObjects or on Components.

garrynewman avatar Jan 19 '24 09:01 garrynewman

This would be useful, I'm not sure the checkboxes would be the best way to go about it though. The actual implementation needs thinking out a bit more.

I could imagine, for example, right clicking and going to "apply to scene", on GameObjects or on Components.

Assuming this would let you highlight multiple and right click apply at the same time, I agree this solution is a lot cleaner.

Retroeer avatar Jan 19 '24 13:01 Retroeer

Just found the issue when I was looking if anyone requested being able to save stuff while playing and to my surprise not only did somebody request it, but it was also implemented already! Image

This isn't necessarily a good thing right now, because it wasn't already clear to me this existed (also for another person when I've asked them). I think it's a bit hidden away and not as obvious that there's an ability like that around. I think this needs better UX all around to inform a user that there's a pending changes. Doing it all through right click seems not as nice, whilest also not being able to just do it for whole component: Image

I think original request like the checkbox isn't the way to go, but notifying the user there's a change and you can save it is definitely a good thing to have. Also instead of right clicking I would like some button near options somewhere or a global one per component (a hotkey would also be nice!).

LVJohnFreeman avatar Oct 30 '24 14:10 LVJohnFreeman

It's nice that we have that with components, but I don't think this yet applies to GameObjects, and yeah I agree I think it could be a bit clearer

Retroeer avatar Nov 12 '24 07:11 Retroeer