UE5 - Understanding the Basics of Data Assets

Поділитися
Вставка
  • Опубліковано 23 лис 2024

КОМЕНТАРІ • 6

  • @BenskiGameWorks
    @BenskiGameWorks 11 днів тому

    Great explanation and example with the meshes!!
    Thank you so much!
    Small question, are data assets meant to be read-only or can I also write to them?
    Currentley I'm using a data asset to act like a "shared variable" between all instances of a certain class. The asset only holds a reference to a widget "The currently active widget in the world" and I want all instances of an Actor Component to have access to read/write to this variable. i.e. Every component of this class can read the active widget reference, or activate it's own widget and overwrite the previous one etc.

  • @jingjingmannen
    @jingjingmannen 3 місяці тому

    Great, thanks!

  • @RoeJogan
    @RoeJogan 2 місяці тому

    If you know you are going to have 100s of different characters/creatures is it better to do it with a struct and data table vs Data assets?

    • @MrButiier
      @MrButiier  2 місяці тому +1

      It depends on the intended use honestly, either or could be suitable however data assets may be easier to utilize to spawn creatures into the world so you don’t have to iterate through a data table with hundreds of lines. However like I said it depends on the “how” you use them

    • @RoeJogan
      @RoeJogan Місяць тому

      @@MrButiier yeah a bit to tricky to describe here.. with how I intend to use this. I will take it to the Discord server. Been enjoying the video playlists.

    • @MrButiier
      @MrButiier  Місяць тому +1

      @@RoeJogan Oh great to have you join the discord! Glad you're enjoying the playlists, I spent some time 3 weeks ago adjusting all the playlists videos so i did it just in time for you haha