cocos-engine
cocos-engine copied to clipboard
CC 3.5.0 - Browser hot-reload on Prefab/Animation Save
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
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?
Re https://forum.cocos.org/t/topic/145369
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)
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! 💪