Terms Enum dropdown for scripting?

More
7 years 3 months ago #1981 by eskalation
Is there a way to get the Terms dropdown that is in the Localize inspector component, as a serialized variable on another script?

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago #1983 by dt1000
I would love to know this as well!
I'm currently writing a set of PlayMaker actions that I would be happy to share and using a drop-down for Terms and Categories would definitely be preferable to typing them in manually!

Thanks,
Dan

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago #1984 by Frank
Hi,
Sorry for the delay in replying. I have been out of town these last days and not online as often as I normally am.

The plugin has a Custom Drawer to make any string into a Popup with all the terms. Just add the [TermsPopup] attribute to any of your scripts.
The Example_LocalizedString.cs file has an example of that:
    public class Example : MonoBehaviour
    {
        [TermsPopup] public string _StringWithTermPopup;
    }

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
The following user(s) said Thank You: dt1000

Please Log in or Create an account to join the conversation.

More
7 years 3 months ago #1988 by dt1000
Thanks, Frank,
but I don't think this will work for PlayMaker actions.
I investigated on their forums and found this:
http://hutonggames.com/playmakerforum/index.php?topic=5743.msg27700#msg27700

Any suggestions?

Please Log in or Create an account to join the conversation.

More
7 years 2 months ago #1994 by Frank
Hi,
I don't currently have a PlayMaker version so I'm not sure how they do the inspectors. From what it looks like, they do their own iteration of properties and automatically select the way to show each field based on the type, but not respecting the Drawers.

I have a task to get PlayMaker and create all the needed actions: trello.com/c/bdaHZZDX/20-playmaker-support
Once I get to that I will purchase PlayMaker and check the code. Sorry for not been able to give you a better answer.

BTW, if you want to priotize the PlayMaker integration, be sure to give you vote!

Thanks,
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.

Time to create page: 0.572 seconds
Template by JoomlaShine