Required attribute not work on Lists

Issue #583 new
Vanifatov Vlad created an issue

Required attribute work on single element but not work on arrays and Lists.

Expected: each list element becomes required, or some error shown if attribute should not be applied to Lists.
Actual: no errors

public class Demo : MonoBehaviour
{
    [Required] public GameObject requiredElement; // work

    [Required] public GameObject[] requiredArrayElements; // not work
}

Unity 2019.1, Odin Inspector Source Code, Windows 10

Comments (1)

  1. Log in to comment