I have custom lua functions that work (if I add them in the script section manually), but don't show up in the custom script dropdown menu. For some reason, older custom functions do show up.
I'm currently using Unity 2020.3.36f1 and there are no errors showing up (unlike the linked thread above). I tried restarting unity, making a copy of the database, closing/reopening the dialogue editor window. The new custom functions simply don't show up.
These are the functions and only AddToJournal and ChangeJournalStatus (two functions that I added a while ago) will show up. The same problem exists for conditions.
Code: Select all
private void OnEnable()
{
// Scripts
Lua.RegisterFunction("AddToJournal", this, SymbolExtensions.GetMethodInfo(() => AddToJournal(string.Empty)));
Lua.RegisterFunction("ChangeJournalStatus", this, SymbolExtensions.GetMethodInfo(() => ChangeJournalStatus(string.Empty, (double)0)));
Lua.RegisterFunction("TradingMenu", this, SymbolExtensions.GetMethodInfo(() => TradingMenu()));
// Conditions
Lua.RegisterFunction("CheckJournalEntry", this, SymbolExtensions.GetMethodInfo(() => CheckJournalEntry(string.Empty, false)));
Lua.RegisterFunction("CheckJournalEntryStatus", this, SymbolExtensions.GetMethodInfo(() => CheckJournalEntryStatus(string.Empty, (double)0, false)));
}