Submissions by alistersoftware tagged unity3d

As I'm working more and more with Unity, I learn about all kinds of interesting anomalies as well. For example, the UI for Unity includes an Input Field. And as any good input box should be, there's a caret - the blinking thing showing you where you're going to type next. But in Unity's Input Field, the caret is sadly glitched, and you need to tweak the hell out of it to get it to work properly.

Now, in my latest blog post I talked about said tweaking, but it's still not enough. It's a start, however, so if you're also having fun with that damn caret, then read here: http://alistersoft-indie-dev.blogspot.com/2015/08/those-damn-carets-unitys-input-field-field-caret-position-wrong.html

The next caret related issue I must work on is why they simply disappear sometimes and not other times. Getting ready for another killer caret week!

To get some much needed practice in C# scripting in Unity (mostly because I'm a PHP developer), I decided to write a simple Unity program that draws two Poker hands from a shuffled deck. It then sorts the cards drawn in order from lowest rank to highest rank (with the lowest card being a 2 and highest being the Ace).

In this blog post, I revealed just how simple it actually was to get this sorting done. I used a sorting algorithm called the Selection Sort, and for something like sorting a few cards in order, it was perfect and extremely simple.

Check out the post here: Simple Sorting Algorithm for a Poker Hand and it'd be great if you use it and let me know!