public MemberOptionTree(IEnumerable <Type> types, MemberFilter memberFilter, TypeFilter memberTypeFilter, ActionDirection direction) : base(new GUIContent("Member")) { favorites = new Favorites(this); codebase = Codebase.Subset(types, memberFilter.Configured(), memberTypeFilter?.Configured(false)); this.direction = direction; expectingBoolean = memberTypeFilter?.ExpectsBoolean ?? false; }
public override void Prewarm() { base.Prewarm(); types ??= typeSet.Concat(typeSet.Where(t => !t.IsStatic()).Select(t => typeof(List <>).MakeGenericType(t))) // Add lists .Where(filter.Configured().ValidateType) // Filter .ToHashSet(); groupEnums = !types.All(t => t.IsEnum); }