Search Unity

Fast-enter-playmode workflow

Discussion in 'Editor & General Support' started by KillDashNine, Feb 11, 2021.

  1. KillDashNine

    KillDashNine

    Joined:
    Apr 19, 2020
    Posts:
    453
    Hey ho,

    I recently modified my project to support the Fast-Enter-Playmode introduced in 2019.3, adding static initializers for static fields as suggested. I am currently tweaking my physics which is 100% a trial-and-error process in which I need to recompile->restart->check results for just hundreds of times.

    This feature is an absolute life saver. I am entering play mode in 1 second despite quite a complex scene.

    (As a sidenote, I was also able to reduce compile times by moving some of the compilation to Standard Assets. I tried the asmdefs but those didn't seem to reduce my compile times.)

    My question is: what should be my process in case of errors from this experimental feature? Sometimes I start the scene and get a feed of errors with the keyword corrupt. In this case what I have done is:
    1. flick on the switches Reload Domain and Reload Scene in Editor Settings
    2. start the scene
    3. flick the switches back.

    What I'd really like to do is just to have a keybind to do both once, to clear any of these scene/domain corruption issues.

    How do I reload the domain and the scene the easiest?