Page 1 of 1

Location variabe in script ?

Posted: Thu Nov 26, 2020 9:26 pm
by Strook
Hello,

Is there a way to create a variable for location in a C# script,to have a dropdown of the location in the inspector ?
The same way one can do

Code: Select all

[ConversationPopup] public string myConv

I can't find a [LocationPopup], and trie [VariablePopup] but it doesn't show the locations. I would like to get the localized name of the location
thanks!

Re: Location variabe in script ?

Posted: Thu Nov 26, 2020 10:09 pm
by Tony Li
Hi,

Back up your project and import the patch available on the Dialogue System Extras page. It adds a [LocationPopup] attribute, which will also be in version 2.2.14 (slated to be released Monday). The patch is in the "Updated for 2.2.13" foldout.

Re: Location variabe in script ?

Posted: Sat Nov 28, 2020 3:28 pm
by Strook
Amazing thanks !

Re: Location variabe in script ?

Posted: Sat Nov 28, 2020 3:31 pm
by Tony Li
Glad to help!