Useful extension methods for Unity.