Manipulating CENH3 can induce haploids in plants. This study demonstrates a strategy to improve both the procedure and efficiency of maternal and paternal haploid production by manipulating temperature and provides valuable insights into the function of CENH3.