Search:

  • Portfolio
  • Blog
  • About
  • Contact

Screen Fade

Posted date:  December 10, 2012


December 10, 2012

A simple, static solution for fading the screen in Unity. This solution fires off three events during its operation: OnFadeBegin, OnFadeUpdate and OnFadeEnd and you can easily hook onto these to respond to the status of the fade. There's also a hand property called IsFadingUp which is convenient for checking when a fade is complete to execute some clean up logic if you are fading scenes and then easily fire off a fade down. I've also included a few handy overloads in the public interface to add flexibility so take a look at the comments when you are using this solution. The example project below...

Read More

Collider Button

Posted date:  October 17, 2012


October 17, 2012

Buttons should be easy and now they are. Collider Button is a simple component that allows any collider to become a button for use in your scene. Whether its a simple prototype that doesn't need a GUI system in place quite yet or if you simply want an easy to use 3D-based button, Collider Buttons aims to make things simple. Collider Button fits into any workflow by allowing two approaches for use: inspector broadcasting and event listening. For inspector use without coding, simply drag a GameObject into the Event Target slot and any and all methods in every component on the GameObject will...

Read More

Simple State Saving

Posted date:  March 21, 2012


March 21, 2012

Saving the state of a GameObject(read MonoBehavior) via traditional serialization is not possible so I whipped up a simple approach that allows easy saving and loading of data contained in a class for simple state storage and retrieval via PlayerPrefs. First, create a super-simple, serializable class that you can use as your data container in your GameObject:

[System.Serializable]
public class HeroStats{
	public float health;
	public float magic;
	public float money;
	public bool talkedToWizard;
	public bool defeatedRedDragon;
	public bool hasMagicKey;
}
Next add an instance...

Read More

Next Page »


  • Recent Posts

    • Pixel Camera
      Recently I needed very granular control over 2D elements for Unity that needed to be workable...
    • Screen Fade
      A simple, static solution for fading the screen in Unity. This solution fires off three...
    • Collider Button
      Buttons should be easy and now they are. Collider Button is a simple component that...
  • Categories

    • Augmented Reality
    • General Babble
    • Unity





© 2013 Bob Berkebile (PixelPlacementâ„¢) and additional respective holders all content used with permission