Announcements, support questions, and discussion for the Dialogue System.
megadok
Posts: 54 Joined: Sat Sep 05, 2020 12:04 pm
Post
by megadok » Tue Oct 20, 2020 2:15 pm
Hey Tony!
I am working with text tables on "Editor" and I need to delete fields via script.
I have used,
but it doesn't work, the field still exists.
Can you help me?
Thank you!
Tony Li
Posts: 22051 Joined: Thu Jul 18, 2013 1:27 pm
Post
by Tony Li » Tue Oct 20, 2020 4:12 pm
Hi,
That should work. Since you're writing an editor script, are you marking the asset dirty afterward so Unity knows to save your changes? (EditorUtility.SetDirty)
megadok
Posts: 54 Joined: Sat Sep 05, 2020 12:04 pm
Post
by megadok » Tue Oct 20, 2020 5:46 pm
The problem was that the field was empty, and therefore it did not delete it.
Thank you Tony!