I figure it out. The file unreal.py doesn’t play the role bridging the C++ and python. So, I cannot run the code in IDE directly. When I invoke the function in unreal, it can work.
Oh, I see! I’m glad that you were able to resolve the issue. Thanks for posting the solution as well. This helps our community when other designers run into the same problem and come to the forums. Thank you!