- edited description
Attribute to validate component on GameObject
Issue #668
new
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:
[NeedsComponent(typeof(Character))]
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)
-
reporter - Log in to comment