03.25.2015 | Comments (2) | C#, Unity
If you use a registration form in your Unity app, it’s a good idea to implement a profanity filter that prevents new users from signing up with usernames using prohibited words.
An easy way to do this is with a plain text file and some simple coding in C# using a List. This method will work with non-English characters as well, so you could use it to filter out words in German, French, Japanese, Chinese and other languages. It’s also cross-platform and works on desktops and mobile devices.
Read More========================================================================================================================================================================================================================
03.19.2015 | Comments (0) | Unity
While working on a project recently I found out that the blur effect (Blur.js from Unity Pro’s Image Effects) I attached to a camera stopped working on mobile and showed only black screen while the effect was running. This could have happened after upgrading from iOS 8.1 to 8.2 (or after upgrading Unity to a minor release). I’m not really sure what caused it but I haven’t made any changes to the code related to the effect.
Read More========================================================================================================================================================================================================================
03.09.2015 | Comments (0) | Unity
It’s often necessary to place a NGUI component in the exact position as a 3D gameobject. By just using transform.position without doing some calculations beforehand, you’ll get unpredictable results and the NGUI object will end up in a wrong place. That’s because NGUI uses its own coordinates and the gameobject uses world space coordinates, so the position won’t match.
Read More========================================================================================================================================================================================================================