Timeline for Separating scene generation and scene starting in Unity?
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 4, 2019 at 10:34 | comment | added | Tudvari | Oh, wait, that would cause issues again, because Update may use an "unupdated" object. My new idea is to just implement that raycasting in lazy initialization: the field is first initialized when its getter is called but it's not yet initialized. | |
Apr 4, 2019 at 10:13 | comment | added | Tudvari | That counting solution came to me as well, but I think you are right, that I should reconsider using Physics in Start. Maybe my initializer raycast should be just moved to update, inside an if statement. And that would save me a lot of hassle and boiler plate code. | |
Apr 3, 2019 at 9:57 | history | answered | nihohit | CC BY-SA 4.0 |