I got this problem in unity :
get_name can only be called from the main thread.
enter image description here