Unwrapping UVs in Editor

Hey I was going through the 4.23 release notes and saw this really cool new feature of generating UVs in the engine. itself. It also mentions that we could do this earlier in 4.22 using scripting Interface. Can anyone tell me or give me a link to how to do this in 4.22 ?