Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Discussion How to HotUpdate DOTS codes when have bugs?

Discussion in 'Entity Component System' started by showwho, Oct 29, 2022.

  1. showwho

    showwho

    Joined:
    Jun 18, 2013
    Posts:
    19
    Do any one have same questions? How to HotUpdate DOTS codes when has bugs?
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,011
    What do you mean by HotUpdate? Hotfix??
     
  3. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,574
    I think OP means hot reload at runtime?
     
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,011
    Does anyone ever use hot reload?

    I find it too brittle even with normal MB workflows and requires careful programming not to mess it up, and spending time fixing things when you messed up, and often the state after a reload isn't something testable anymore anyway.
     
  5. Kmsxkuse

    Kmsxkuse

    Joined:
    Feb 15, 2019
    Posts:
    297
    Shader hot reload during play mode is exceptionally useful for debugging. If scripts can do the same, that would be amazing but scripts have more mature debugging and inspection programs so not being able to is not as critical as shader hot reloading (where the only debugging is what is or is not rendered).
     
  6. showwho

    showwho

    Joined:
    Jun 18, 2013
    Posts:
    19
    when runtime, how to reload?
    when published, how to hotfix codes?
     
  7. Arnold_2013

    Arnold_2013

    Joined:
    Nov 24, 2013
    Posts:
    262
    I rebuild the entire game (after fixing code) and reupload to steam. Takes ~2 hours, but not released yet, so only playtesters would complain.
    Because the code is IL2CPP and Bursted, I would not know any hacky way to fix issues after building.
     
  8. Kamyker

    Kamyker

    Joined:
    May 14, 2013
    Posts:
    1,084
    Yes but rather custom frameworks. 1:15:00:


    Unfortunately host didn't ask about any details.