Publisher | combustablejo |
---|---|
File size | 46.52kB |
Number of files | 7 |
Latest version | 1.0.3.1 |
Latest release date | 2021-03-15 03:39:55 |
First release date | 2014-08-14 10:38:14 |
Supported Unity versions | 2018.4.2 or higher |
Word Filter is an efficient simple way of filtering text for words or phrases. Word Filter comes with a list of recommended words and phrases to filter, with the ability to add or remove any that you want.
Demo
Reference
Example Use Case
If you wanted to filter out the word "ham". You can choose to replace the word with any provided string or just "***". This will work even with "h-a-m" or "hA_m" or "!h-a_m!".
If you add "ham" to the list of exact match words, instead of the partial match ones, "ham" will still be filtered, but not the "ham" in "hamster".
Finally
There are two classes for performing the filtering, the WordFilter and TWordFilter, TWordFilter is a multithreaded version of the WordFilter class, and produced the same result, however does not stop the code to wait for the result.
Demo
Reference
Example Use Case
If you wanted to filter out the word "ham". You can choose to replace the word with any provided string or just "***". This will work even with "h-a-m" or "hA_m" or "!h-a_m!".
If you add "ham" to the list of exact match words, instead of the partial match ones, "ham" will still be filtered, but not the "ham" in "hamster".
Finally
There are two classes for performing the filtering, the WordFilter and TWordFilter, TWordFilter is a multithreaded version of the WordFilter class, and produced the same result, however does not stop the code to wait for the result.