Question by
adecker_MG · Jul 16, 2018 at 02:52 PM ·
uiphysicsupdateraycastingfixedupdate
Does GraphicRaycaster.Raycast produce more reliable results in Update or FixedUpdate?
I am very familiar with the concept that physics-dependent code should be ran in the FixedUpdate loop and frame-dependent code should be run in the Update loop. This of course being for the reason that using the wrong loop may provide out-of-date data on the objects you are working with. In what category does GraphicRaycaster.Raycast land? It is a raycast, deals with UI which is typically frame-updated. What is the best practice for dealing with these results? My current situation would work best in Update as I would like to tie in Input as well which gets updated in the Update loop.
Comment