new functional for unity open-close