def METHOD_NAME(self, context, layout):
    if self.unwrap:
        layout.prop(self, "level_unwrap", text="level")
    else:
        layout.prop(self, "level", text="level")
    layout.prop(self, "unwrap")