ReactUnity / core

React and HTML framework for Unity UI & UIToolkit
https://reactunity.github.io/
MIT License
735 stars 42 forks source link

Auto-Reload after changes in code are not reflected or automaticaly updated. #84

Closed Muchaszewski closed 1 year ago

Muchaszewski commented 1 year ago

Changes to React project code are not automaticaly updated when changes to the code are made.

Expected behaviour: ReactUI should automatically update when dev-server detects changes

Current behavior: Nothing happens

Possible workaround After each change, you can use the Restart function in ReactUIDocument to update it manually, or you can restart game.

Other considerations

KurtGokhan commented 1 year ago

ReactUnity already supports HMR. It was not working because of a bug that was introduced in 0.14.3 with a change in location. Reverted now. Fixed in 0.14.5.

Other solutions you proposed may be added in the future with a comprehensive dev tools implementation.