Unity Scriptable *SUB* Objects

Поділитися
Вставка
  • Опубліковано 26 сер 2024
  • Unity has AssetDatabase.AddObjectToAsset, which lets you attach child objects to other root level child objects, as a sort of 1 level deep folder structure. This means that "package" files, like assets, can be setup to also store textures, meshes and other scriptables, as drag and droppable file elements in their own right.
    Test Scriptable Source File: dotnetfiddle.n...
    #unity #unity3d #gamedev #gamedevelopment #gamedeveloper

КОМЕНТАРІ • 4

  • @vitalypanda9690
    @vitalypanda9690 3 місяці тому +2

    Omg amazing! I didn't know about that

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

    I used it in the past to pack animations into an AnimationController, but now I just make a folder and store my things in tons of folders. :D

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

    What is `MorphAssetFile` exactly? It inherits from ScriptableObject? Thanks

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

      Just my own class. Its part of a design tool to allow me to morph/deform the car into other shapes. It doesn't hold any real meaning to this video. Though once I have the morphing working how I want, I'll probably do a video on that as well.