Posts tagged c#

Unity GPS plugin development tutorial: building a Android plugin for Unity with Eclipse and Ant
Apr 28th 2012
[This entry was updated in Feb 11, 2015 ] [Initial post date: Apr 28, 2012] This tutorial is about creating and compiling your own Unity GPS Plugin for Android. I wrote this tutorial in order to help those who are getting angry and fed up with missing information about the process of writing their own Unity Android plugin.
My motivation was to get real speed values out of the GPS of my device, because the inbuilt Unity Input.location functions returned only latitude and longitude values that where (now that we’ve solved the problem I can assume that ) only computed on network basis and not on the data provided by the inbuilt GPS receiver (http://forum.unity3d.com/threads/132587-GPS-Input.Location-accuracy-question). This was pretty annoying so I decided to write my own GPS Plugin for Android.
Retrouvez la version française de ce tutoriel à l’adresse suivante : http://www.unity3d-france.com/unity/2012/creation-dun-plugin-gps-pour-unity-par-matthieu-deru/

How to resize the Flash Player from Flash with fscommand and C#
Sep 25th 2011
How do you resize the Flash Player or to be more precise the width of window showing your animation? Whereas with AIR this is done with few lines, the Flash Player will not allow you to resize its window. The first idea when trying to solve this issue was to write something like : stage.width = 1024; . Yes, this could work but this value can’t be overwritten and the Flash Player won’t be resized. But how to realize this, let’s say if you have several screen resolution to target and want to automatically resize the Flash Player? Here is my solution
Comments