This article describes the process in detail (which I personally have not seen anywhere in the official documentation, unfortunately).
Just remember that it won’t be as difficult to just save and load the variables as it will be to correctly configure the actor again based on this data. This will be difficult to automate.
Otherwise, bugs and glitches will probably appear after loading.