extension and utility methods for the Unity game engine