This script belongs to a TextEdit. The function is to assign the name that the player writes to the resource variable. If it is saved, it outputs “success” otherwise it outputs “Fail”.
I’ve tried changing the method in several ways, but nothing has worked. When I run the project, it works, but if I try to save a name, it crashes. And in the debugger it says “can’t save empty resource to path”.