20-02-2024, 09:23 AM
(This post was last modified: 20-02-2024, 09:24 AM by josemendez.)
(20-02-2024, 09:11 AM)Apoll0 Wrote: May be I should wait for blueprint loading before setting particles positions? BecauseĀ I RestoreRopeFromJSONObject right after instantiating the prefab with ropes (template)
Yes, you should wait for the rope to be loaded into the solver. You can subscribe to the rope's OnBlueprintLoaded event to get notified when this happens. Not waiting will likely lead to out of bounds access exception, since rope.solverIndices won't be initialized yet.