Attribute to validate component on GameObject

Issue #668 new
David Rochin created an issue

I think it would be really useful if we had an attribute similar to Unity’s [RequireComponent] but for GameObject fields. It could be used like this:

public GameObject CharacterPrefab;

And then Odin would do this (pretend I put something in the Object Field that doesn’t have a Character component):

Comments (1)

  1. Log in to comment