pub fn do_with_inheritable_variables<F>(root: &mut dyn Reflect, func: &mut F)where
    F: FnMut(&mut dyn ReflectInheritableVariable),