Remove field texttable.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
megadok
Posts: 54
Joined: Sat Sep 05, 2020 12:04 pm

Remove field texttable.

Post by megadok »

Hey Tony!

I am working with text tables on "Editor" and I need to delete fields via script.
I have used,

Code: Select all

 table.RemoveField("string");
but it doesn't work, the field still exists.

Can you help me?

Thank you! :)
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Remove field texttable.

Post by Tony Li »

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

Re: Remove field texttable.

Post by megadok »

The problem was that the field was empty, and therefore it did not delete it.
Thank you Tony! :D
Post Reply