What is the different between Enum.RaycastFilterType.Whitelist/Blacklist and Enum.RaycastFilterType.Include/Exclude

They appear to be the same, and I found out about the latter 2 by the completion suggestions in the editor. Only that the former 2 were around for longer. Are there any other differences?

2 Likes

Functionally they work the exact same

2 Likes

RaycastFilterType.Inclue/Exclude isn’t released yet?

2 Likes

As @DataSigh stated, there’s no difference in their functionality. Include and Exclude were created to be more inclusive (I Assume)

3 Likes

FWIW: when the responses above say that they’re functionally the same, it’s literal. Whitelist and Blacklist were deprecated and then changed to aliases for Include and Exclude. Whitelist and Blacklist still work for backwards compatibility reasons but the enums internally are now Include and Exclude and are reflected as such in code.

print(Enum.RaycastFilterType.Blacklist.Name) --> Exclude
9 Likes