Custom Validators with Odin Inspector

Поделиться
HTML-код
  • Опубликовано: 10 июл 2024
  • Odin custom validators can be used to check the values of fields, whether the structure of a prefab is correct, if required components exist on an object and so much more! Validators work with Odin Inspector and with the Project Validator addon.
    Tutorial Files: github.com/onewheelstudio/Dev...
    Odin Serializer: odininspector.com/odin-serial...
    Odin Tutorials: odininspector.com/tutorials
    Buy Odin Inspector: odininspector.com/pricing
    Buy Odin Project Validator: odininspector.com/odin-projec...
    Odin Inspector: odininspector.com/
    More Odin Tutorials: odininspector.com/tutorials
    Odin Attributes: odininspector.com/attributes
    Devdog Discord: / discord
    Assets Used in the Video (Affiliate Links)
    Low Poly Farm Pack: assetstore.unity.com/packages...
    Timecode:
    0:00 Intro
    0:38 Two Types of Validators
    1:00 Needs Component (Attribute) Validator
    3:11 Sprite Size (Attribute) Validator
    4:33 Plant Class (Value) Validator
    6:38 THE END
    #Sirenix #odininspector #ProjectValidator #unitytool

Комментарии • 5

  • @aldigangster123
    @aldigangster123 3 года назад +2

    in the video it says it's a paid addon, but I can't find it in the Unity Asset Store. Odin Inspector is the only asset showing up from Sirenix. I'm confused lol

    • @sirenix7891
      @sirenix7891  3 года назад +2

      Sorry about that, we should have been more specific. The project validator, isn't needed for custom validators it just makes them more useful, is only available directly from the Odin Inspector website there's a link in the description and here's another just in case. Odin Project Validator: odininspector.com/odin-project-validator

    • @aldigangster123
      @aldigangster123 3 года назад +2

      @@sirenix7891 ah, got it now. Thank you!

  • @alejmc
    @alejmc 3 года назад

    Wow, this is quite customizeable. It’s like [Required] but on boosts.
    Would it be possible to also add buttons for it? Show the warning “doesn’t have a collider”, display a button “Add Collider”, clicking on that button would callback at some logic on the validation that would take care of adding the right collider at the right place.

    • @sirenix7891
      @sirenix7891  3 года назад

      This feature is planned, but isn't available just yet. It's bookmarked to be implemented with Odin 3.1