Search found 54 matches
- Wed May 22, 2024 9:15 pm
- Forum: Dialogue System for Unity
- Topic: Triggering Animation Changes for characters using Dialog Entry Variables
- Replies: 8
- Views: 1176
Re: Triggering Animation Changes for characters using Dialog Entry Variables
Hey Tony! Came across this while researching. Do you have the method for finding the character display name in script? I'm trying to search the display name I just set but can't find it. I have this in the script below: CharacterNameText.text = DialogueLua.GetActorField("BigBoss", Dialogue...
- Fri Jan 19, 2024 9:37 am
- Forum: Dialogue System for Unity
- Topic: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
- Replies: 19
- Views: 246850
Re: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
Yes I was thinking that too, I did switch to the ResetGameState() and that seems to be working so far along with having the script directly on the dialogue manager.
- Wed Jan 10, 2024 5:31 pm
- Forum: Dialogue System for Unity
- Topic: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
- Replies: 19
- Views: 246850
Re: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
Hi, Your script is on the Dialogue Manager GameObject, correct? (I believe I mentioned that, but just checking in case you missed it.) It will only run OnConversationStart if it's on the Dialogue Manager or one of the participants. If you don't want the script to be on the Dialogue Manager, you can...
- Wed Jan 10, 2024 2:24 pm
- Forum: Dialogue System for Unity
- Topic: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
- Replies: 19
- Views: 246850
Re: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
Add [SerializeField] to the front of typewriterSpeed: [SerializeField] private float typewriterSpeed = 90; This way you can see its value in the inspector. Then play the scene and keep the GameObject with this script selected so you can watch the value. When you click the button, does typewriterSpe...
- Wed Jan 10, 2024 1:35 pm
- Forum: Dialogue System for Unity
- Topic: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
- Replies: 19
- Views: 246850
Re: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
Are you calling DialogueSetSlowSpeed() while a conversation is active? If it's possible that you might be calling DialogueSetSlowSpeed() when no conversation is active, change the method to: private void SetTypewriterSpeed(float speed) { typewriterSpeed = speed; if (currentUI != null) { foreach (va...
- Wed Jan 10, 2024 1:04 pm
- Forum: Dialogue System for Unity
- Topic: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
- Replies: 19
- Views: 246850
Re: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
The Dialogue System uses Unity to call OnConversationStart(Transform) through reflection, so to the code editor it may appear as if it won't be used. If you click on the error in the Console window, the bottom of the Console will show the stack trace, which is the order of method calls. In the erro...
- Wed Jan 10, 2024 12:04 pm
- Forum: Dialogue System for Unity
- Topic: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
- Replies: 19
- Views: 246850
Re: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
Hi, Is it getting the NullReferenceException in the OnConversationStart() method? For brevity and readability, my example code omits error checking. In your own code, you'll probably want to check that currentUI isn't null. It seems to be in the SetTypewriterSpeed, but I noticed in the code that On...
- Wed Jan 10, 2024 9:39 am
- Forum: Dialogue System for Unity
- Topic: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
- Replies: 19
- Views: 246850
Re: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
Hi, You could try adding an OnConversationStart(Transform) method to your script. In this method, get a reference to the current dialogue UI (which may be a dialogue UI override) and set the speeds on its subtitle panels' typewriter effects. Something like: private float typewriterSpeed = 90; priva...
- Sat Jan 06, 2024 2:46 pm
- Forum: Dialogue System for Unity
- Topic: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
- Replies: 19
- Views: 246850
Re: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
I was thinking that the ResetDatabase() was also clearing the typewriter settings because there wasn't a change on my end but it may be something in one of my other scenes that is causing the issue. I'll check to make sure since I'm doing a bit of refactoring over old mess that I've been putting tog...
- Sat Jan 06, 2024 1:33 am
- Forum: Dialogue System for Unity
- Topic: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
- Replies: 19
- Views: 246850
Re: Set Dialogue System text speed/typerwriter effect via functions for all dialogues
Thanks again Tony! That's working on this scene, but I just realized when I select "new game" that I'm using DialogueManager.ResetDatabase to clear the game. Is that the best method for starting a game over with default variables? Or maybe I should be doing them individually instead of a f...