public override void Prewarm() { filter = filter ?? UnitOptionFilter.Any; try { options = new HashSet <IUnitOption>(UnitBase.Subset(filter, reference)); } catch (Exception ex) { Debug.LogError($"Failed to fetch unit options for fuzzy finder (error log below).\nTry rebuilding the unit options from 'Tools > Bolt > Build Unit Options'.\n\n{ex}"); options = new HashSet <IUnitOption>(); } typesWithMembers = new HashSet <Type>(); foreach (var option in options) { if (option is IMemberUnitOption memberUnitOption && memberUnitOption.targetType != null) { typesWithMembers.Add(memberUnitOption.targetType); } } }
private static void UpdateUnitOptions() { UnitBase.Update(); }
private static void BuildUnitOptions() { UnitBase.Build(); }
protected MemberUnitOption(TMemberUnit unit) : base(unit) { sourceScriptGuids = UnitBase.GetScriptGuids(unit.member.targetType).ToHashSet(); }
protected override void Complete() { UnitBase.Build(); base.Complete(); }
public override void Run() { UnitBase.Build(); }
public ExposeOption(Expose unit) : base(unit) { sourceScriptGuids = UnitBase.GetScriptGuids(unit.type).ToHashSet(); }
public LiteralOption(Literal unit) : base(unit) { sourceScriptGuids = UnitBase.GetScriptGuids(unit.type).ToHashSet(); }