H.D.
I really liked what Donna L had to say. Children often have areas of regression; your daughter has adapted beautifully to a very large new change at school, so feel confident that, when she's ready, she'll make the change at home. It's important not to make this a control issue for a lot of reasons, but most significantly, she does need a chance to relax at home, and big part of toilet learning is stopping what one is doing (either through adult-guided transition or knowledge of one's body's cues, which takes a while to develop) and completely switch gears. Leaving off playing or any other sort of engagement is a challenge for two-year-olds, who live in the present.
When you do see signals that your daughter is ready to use the toilet at home, something you can do to help her is what the teacher is doing at school, inviting her (NOT asking) to use the toilet regularly. 2 year olds regularly answer "No" to any old question and "Do you have to go potty?" is no different. If stopping play is part of her issue with using the toiler, see if you can help her transition as smoothly as possible by continuing her play in the bathroom ("Does your baby need to go potty too? What about Mr. Giraffe?" "Let's run our trains into the bathroom. Do you want to be the leader?" etc). With a little imagination, you can honor her need to stay connected to what she's doing while helping her continue her toilet learning. Let her feel successful when she stays dry with some matter-of-fact comment ("Wow. Your pants have stayed dry all morning. You really know how to put your pee in the potty.") and, as Donna suggested, have her help in cleaning up her messes to the best of her ability, not as a punishment, but as a lesson that accidents happen and then we clean them up. Above all, take it easy, and gradually, she will too.