Search found 3 matches
- Sun Dec 04, 2022 9:46 am
- Forum: Dialogue System for Unity
- Topic: Get PlayerPrefs String during Dialogue
- Replies: 5
- Views: 231
Re: Get PlayerPrefs String during Dialogue
Omg thank you!!!! It finally worked.
- Sun Dec 04, 2022 9:18 am
- Forum: Dialogue System for Unity
- Topic: Get PlayerPrefs String during Dialogue
- Replies: 5
- Views: 231
Re: Get PlayerPrefs String during Dialogue
Thank you so much for the help! I registered a function in Lua called "playername" like this: Lua.RegisterFunction("player", this, SymbolExtensions.GetMethodInfo(() => PlayerName(string.Empty))); And then I created a function called PlayerName like this: public void PlayerName(st...
- Sun Dec 04, 2022 7:58 am
- Forum: Dialogue System for Unity
- Topic: Get PlayerPrefs String during Dialogue
- Replies: 5
- Views: 231
Get PlayerPrefs String during Dialogue
Hi, I want to be able to, in the "Dialogue Text" of one of my conversations, have an actor mention a name saved in player prefs under a string. For example: "Oh hi (PlayerPrefs.GetString("playername") nice to see you." It's based on player input, so how can I access wha...