Toddler suddenly not sleeping well

My toddler used to lay down with me for 5 minutes and soon after I got up and left the room she'd be out like a light. No crying or yelling or anything and she would sleep until morning for the most part. It took us a long time to get to this point. She only started sleeping through the night like 6 months ago. Now suddenly she's crying when I leave and wanting me to come back (I do) and then same thing when I try to leave again and same thing for her naps. She's also waking up crying during the night. Last night she moaned and cried all night long. I don't know why but we finally got up at 4 after she wouldn't go back to sleep even after cuddling in bed with us. She doesn't seem sick and she has almost all her primary teeth so I don't think it's teething. Could she be cold? She has a comforter but she won't sleep under it. I have to cover her when she's asleep and she still kicks it off. My husband is always hot when he sleeps but I'm always cold and I need blankets even when it's 77 in our house. She's almost 2 by the way. I'm not sure what's going on with her!