Is it possible to check whether a TArray contains a type of TsubclassOf(the same object as in the array of couse), by using the FindItemByClass function?
Or is there a better way to check this?
Manually looping through and comparing is an option, albeit not a good one.
Only way I’ve made it “work”, is by letting FindItemByClass search for the parent class… which, of course, returns true every time… which is less that ideal…
I could use ContainsByPredicate and pass a lambda with the object itself as a parameter.
then return the comparison of the object with the Subclass. Here’s what I mean: