Displays a warning if the field does not have an object reference assigned.
[Required] public GameObject requiredField1; [Required("Custom message")] public Material requiredField2;