cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

CC 3.5.0 - Browser hot-reload on Prefab/Animation Save

Open Ronsku opened this issue 3 years ago • 4 comments

Use Case

Speed up development by hot-reloading the development game after saving a prefab or a timeline animation.

Problem Description

When saving a Scene you trigger a hot-reload, but not when saving a prefab or timeline animation. Usually you work in Prefabs or timeline animation and not in scenes. Hot-reloads are very handy and speeds up the development. This was how it worked in CC2 as well.

Proposed Solution

Add a hot-reload when saving prefabs or add it as a setting to turn on at least. Maybe add also hot-reload (always on or setting) for saving timeline animations.

How it works

No response

Alternatives Considered

You can save a prefab, go back to browser and reload. You can also save a prefab and go into a scene and save it again. None of the options are efficient.

Additional Information

No response

Ronsku avatar May 27 '22 18:05 Ronsku

What is going on with this ticket @jareguo @VisualSJ? Is there a reason why you don't want hot-reload of the browser when you save a prefab and only have it on when you save a scene?

Ronsku avatar Mar 24 '23 08:03 Ronsku

Re https://forum.cocos.org/t/topic/145369

jareguo avatar Oct 20 '23 05:10 jareguo

This should be done so that if the resource in use is modified, it will be automatically refreshed. If the modified resource has not been loaded, it will not be automatically refreshed. In line with the UX of modern tool chains (eg. vite hot reload)

smallmain avatar May 16 '24 05:05 smallmain

This should be done so that if the resource in use is modified, it will be automatically refreshed. If the modified resource has not been loaded, it will not be automatically refreshed. In line with the UX of modern tool chains (eg. vite hot reload)

Yes! 💪

Ronsku avatar May 17 '24 10:05 Ronsku