Staying warm in cold weather, cold-blooded animals must expose themselves to a source of warmth such as direct light.
Staying→To stay
结合句意,这里意为“为了保持温暖”,所以要用不定式来表示目的。