Add Terms From Editor Script
6 years 1 month ago #3295
by BrockG
Add Terms From Editor Script was created by BrockG
I'm looking for a way to add terms, as shown
here
, except do so via an editor window script. I haven't found a method that seems to do this.
At this point I'm assuming there is no official way to do this, and so I'm looking for workarounds. I have a lot of data that I don't want to copy and paste, so I need to automate the process through script.
So far, the best I might be able to do is to have my script export the terms I want it to add as a csv and then import/merge those with the I2Languages.prefab. This is less than ideal for my project, but works if nothing else does.
If anyone knows of way to add terms through an editor script, please let me know.
At this point I'm assuming there is no official way to do this, and so I'm looking for workarounds. I have a lot of data that I don't want to copy and paste, so I need to automate the process through script.
So far, the best I might be able to do is to have my script export the terms I want it to add as a csv and then import/merge those with the I2Languages.prefab. This is less than ideal for my project, but works if nothing else does.
If anyone knows of way to add terms through an editor script, please let me know.
Please Log in or Create an account to join the conversation.
6 years 1 month ago #3296
by Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
Replied by Frank on topic Add Terms From Editor Script
Hi,
Here are a few topics showing how to add terms from your own scripts (editor or runtime):
inter-illusion.com/forum/i2-localization...s-via-a-scripts#2799
inter-illusion.com/forum/i2-localization...om-other-source#2281
inter-illusion.com/forum/i2-localization...pt-with-strings#1747
inter-illusion.com/forum/i2-localization...rms-through-code#844
inter-illusion.com/forum/i2-localization...tions-via-script#114
Basically, you just need to create a TermData and call source.AddTerm(..)
Hope that helps,
Frank
Here are a few topics showing how to add terms from your own scripts (editor or runtime):
inter-illusion.com/forum/i2-localization...s-via-a-scripts#2799
inter-illusion.com/forum/i2-localization...om-other-source#2281
inter-illusion.com/forum/i2-localization...pt-with-strings#1747
inter-illusion.com/forum/i2-localization...rms-through-code#844
inter-illusion.com/forum/i2-localization...tions-via-script#114
Basically, you just need to create a TermData and call source.AddTerm(..)
Hope that helps,
Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
To get the betas as soon as they are ready,
check this out
Please Log in or Create an account to join the conversation.
6 years 1 month ago #3297
by BrockG
Replied by BrockG on topic Add Terms From Editor Script
Thank you.
This is very helpful.
This is very helpful.
Please Log in or Create an account to join the conversation.
Time to create page: 0.189 seconds