It's predominantly a matter of supply and demand, with some significant co-factors being experience, contacts and how well you match what the employer is looking for on a personality level. Many pilots manage to find new jobs even after a couple of years outside aviation. Many struggle even while being current and recent on multiple types. It's about being what the particular gig is looking for - and they're all different.