I cant seem to get this working either. This is a UnityGUI script snippet right? Is it too much to ask for working examples? These snippets might help the high end coders but this type of thing is useless to the rest of us. I don't see any point in posting stuff if its a mystery how to get it working.
To try and work with these scraps is a frustrating waste of time.