Lets Talk About Timers & Lyra Start up

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ต.ค. 2024

ความคิดเห็น • 3

  • @GC-jm9bt
    @GC-jm9bt 7 หลายเดือนก่อน

    Polling like this seems kind of ugly in my opinion. Lyra does come with the ULyraExperienceManagerComponent that has an OnExperienceLoaded delegate. Is it possible to use that instead of a polling loop or is it possible that the widget/component is not yet loaded at that point?

    • @Rukgul
      @Rukgul  7 หลายเดือนก่อน +1

      The challenge is you don't know the sequence of the level build (markers) or how long the various components themselves take to load or the nesting of logic. Even the dev comments in the on experience loaded cautions about trusting that everything is loaded, it just indicates the loop of calling "add this" is complete, not that the individual elements are themselves ready. Sometimes it is better to be safe, polling during start up is a tool, one that shouldn't be ignored (IMO) and one that can be easily debugged.