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
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
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
@@sirenix7891 ah, got it now. Thank you!
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.
This feature is planned, but isn't available just yet. It's bookmarked to be implemented with Odin 3.1