Press "Enter" to skip to content

Tag: unity3d

Serial Com Ports in Unity (+Arduino stuffs)

Hey everyone! Sorry it’s been such a long time. I’ve been super busy with work and all most of the stuff I’m working on cannot be shared publicly. However, one project I’m working on requires Serial Port communications and the scripts I had been using started to lock up and no longer work. It’s a common pain with Serial Ports and threading in Unity’s .NET. Threads don’t close, ports don’t close, programs lock up, etc, etc. So I spent some of my personal time enhancing DWilches’ SerialCommUnity project on Github. DWilches’ SerialCommUnity project is a great basis for doing serial…

Leave a Comment

Data Serialization Part 2 – Unity3D, Json.NET, and Twitter REST API

Why Json.NET? Unity does now include a Json utility, but it falls flat in many cases. It doesn’t serialize nested classes well (classes with multiple levels of inheritance), it can’t rename the Json object’s variables to something more appropriate for your code base, and there’s really not a lot of options. However, it does claim to be “…significantly faster than popular .NET JSON solutions…”. One of my favorite features of Json.NET is that it can easily serialize private fields and public fields with private setters. This allows for maintaining access restriction in you code base’s models without requiring the use…

Leave a Comment

Saving Data in Unity 3D (Serialization for Beginners)

With games we almost always need to save some data: scores, inventory, progress, preferences, etc. There are many ways to do this in Unity. In this article I’ll take you through a few different ways to save data and hopefully encourage some good habits when structuring your applications for saved data. There are two main levels of persistency for data: Session Data¬†(data doesn’t necessarily need to be remembered the next time you load up the application): This is usually done via static variables and is used for only values that matter for the current session. Most commonly this is for…

8 Comments

My Unite LA 2016 Experience

Hi everyone! I’m finally an official Unity Certified Developer! I just returned from the Unite LA conference and a short vacation, and I thought I’d share some of my highlights with you. I decided to go to Unite LA for multiple reasons: I really wanted to be a Unity Certified Developer, going to LA would allow me to meet face to face with one of my best clients, and I was hoping to meet some like-minded developers. Mission accomplished on all fronts! Plus my wife and I were able to have some time to explore LA. This was my first…

Leave a Comment

Unity3D Certification Courseware Review

Hi everyone! I’ve been prepping for the Unity Certification that I’ll be taking at Unite LA next week. For preparation I decided to work through the Unity Courseware. I received 30-day access to it for “free” when I subscribed to Unity Plus so it was a double win! I figured that I should review it as well so that others know what they’re getting for their money. Please note that I’m sure they’ll be making improvements in the future, so this review may/may not be valid in a few months. You have multiple options to rent the courseware. The cheapest…

2 Comments

Diagnostics

Ever have a bright idea and think to yourself “oh, man, this is going to be so much faster”? Well, I do often, and often I find out that I’m a dummy. But that’s OK! We need to learn. So how do you find out your bright idea is as bright as a black hole? Diagnostics. The tool I tend to use most is simply the Stopwatch provided by the System.Diagnostics namespace. It’s pretty simple and provides that much-needed insight to the age-old question: “Is this method better than that method”. In this article I’ll take you through a couple…

Leave a Comment

Unity 3D Tutorial – Custom Transform Inspector

Hi everyone! One of the awesome things about Unity is you can customize the editor to add all sorts of cool functionality. This article will show you how to override Unity’s transform inspector with a more useful customized version. The Custom Transform Component includes: The ability to view and edit the quaternion rotation (nice for experimenting and learning how quaternions work). The ability to show the local axes in the Scene view even when the object is not selected. Some special operations for aligning to other objects, random rotation, random scale, and random position. Here’s what the final product will…

8 Comments