25-10-2021, 09:03 AM
(This post was last modified: 25-10-2021, 09:04 AM by josemendez.)
(19-10-2021, 03:29 PM)Jschol Wrote: Here I noticed that the solverBatchOffsets returned an empty list when called in the void start()?
Actors are added to solvers in their Start() method. The order in which Unity calls Start, Awake, Update etc for different components is undefined by default. So if you have a script that accesses solver/actor data in Start() it might run before he actor has been added to the solver.
Either set your script execution order so that your script runs after ObiSolver/ObiActor, or wait one frame after Start. See:
https://docs.unity3d.com/Manual/ExecutionOrder.html
https://docs.unity3d.com/Manual/class-MonoManager.html