Friday 25 July 2014

XML with Linq - how to save and load those files?! [Unity3D]

Recently I was fighting with saving and loading XML files using Linq which was quite odd.. Especially when this make you headache..


Some of you may not even think about it when you have some small projects but in bigger one.. Data serialization might be real challenge. I was doing some research for dealing with it and I found 2 most common methods: 
  • Unity Serialization, which work automatic with just adding [SerializeField] over variable or class
  • Writing own serializer and save data to XML, JSON or any other file
First I was thinking that the first method might be good for me but suddenly... Wild "I'm not this type of guy" appear.. And that mean that I have to know what's going on in project so I start digging and looking for information about dealing with XMLs... :P

Input Reader [Unity3D] - Updated!

So InputReader was updated to read individual joystick axes.
This should work with multiple controllers at the same time. (hope so!)
Unfortunately Unity does not allow to create or modify axes from code so you have to manually add axes to InputManager... (link to example below)

New InputReader is [here].
And example of InputManager with individual axes is [here] (simply copy this to ProjectSettings/ in your project).

Friday 11 July 2014

Input Reader [Unity3D]

I'm just working over my customizable input manager and the first thing that was a little though was reading input from keyboard. So I just wrote one and I hoped that it will be helpful.

So here you can find that script in my public repository [InputReader]