There’s nothing wrong with my code but I would just like to check for the reason why this would be a thing and how do I get rid of it.
Its cuz it’s deprecated. I’m not sure if it’s even replaced by something but that what came up on my script editor or smthn. It should work fine though
It’s Include
and Exclude
, not Blacklist
and Whitelist
More on Enum.RaycastFilterType
here.
So to fix it just use:
Params.FilterType = Enum.RaycastFilterType.Exclude
Also I highly suggest hovering over the red line, so that you can see the error message and find the solution to the issue quicker yourself.
i recomend you take a look on Raycast Documentation in the section of “Filtering”.
For PR reasons Whitelist and Blacklist have been renamed to Include and Exclude, and the former are deperecated (no longer reccomended to use).
Thank you all. I completely forgot about Exclude.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.