Sorry for the small delay on this, was competing in a gamedev competition which took up most of my weekend

The way I instantly make the variables is using tip #1 I posted https://programming.dev/post/17169923

  • astrsk@kbin.run
    link
    fedilink
    arrow-up
    4
    ·
    4 months ago

    Interesting. Is this a compile time optimization so there’s no tree walking or lookups at runtime?

    • Ignotum@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      4 months ago

      I think i read something about that being the case, and if i’m not mistaken the node can only be accessed using the unique name from inside its scene

      Otherwise, if you instanced multiple copies of the same scene, you’d have name collisions and stuff