This evening I worked on basic boiler plate stuff. I put some stuff up on github including Futile QuickStart I even made a pull request for Futile.
I pretty much spent the rest of evening fighting my font code. Fonts took way too long because I though I was running the latest version of Futile, but it turned out I wasn’t. I got confused about my github pull and which package I imported. Exactly, one of those things that bugs me about the way github’s and Unity’s idiosyncrasies interact. Anyway, once I figuring that out, Futile gave me a useful error that nicely explained what the problem was, oh hum.
Futile is a framework that allows you to control rendering within Unity programmatically. This is a boon to anyone interested in 2D games and finds, like myself, that Unity impedes 2D game development.
- Get Futile from Github
- Import the Futile.unitypackage into you Unity project, Assets->Import Package->Custom Package…
- Create an Empty GameObject and call it Futile Camera, GameObject->Create Empty
- Find the Futile script in the Project Pane and drag it to the Futile Camera object you just created.
- Make or find a fun and silly image, I like this one: OMG IT SPINS
- Now put it in you Unity project under the Asset folder and call it OMG.
- Click on the image and set the Texture Type to Advance and then the Non Power of 2 to None.
- Create a new Script file and name it FunWithFutile.cs and drag it to the Futile Camera object.
- Now copy the code below into you script file.
public class FunWithFutile : MonoBehaviour
// Use this for initialization
FutileParams futileParams =
new FutileParams(true, true, true, true);
1024, 1, 1, "");
futileParams.origin = new Vector2(
FSprite fSprite = new FSprite("OMG");
// Update is called once per frame
- Press play and be impressed!