Hi,
For the script, put this line at the top of the file:
using UnityEngine;
Put sequencer commands in the Sequence field, not the Script field. The Script field is for Lua code, such as conditions on dialogue entries. The Sequence field is for sequencer commands.
Search found 21055 matches
- Tue Feb 10, 2015 3:03 am
- Forum: Dialogue System for Unity
- Topic: Trouble displaying a Variable
- Replies: 22
- Views: 3989
- Mon Feb 09, 2015 9:31 am
- Forum: Dialogue System for Unity
- Topic: Minor issues with UnityUIBarkSubtitleDialogueUI and UnityUIBarkUI
- Replies: 6
- Views: 1241
Minor issues with UnityUIBarkSubtitleDialogueUI and UnityUIBarkUI
You should see SetUIElementsActive(true) further down in the Bark() method. It deactivates and reactivates the UI elements so trigger any effects that work in OnEnable, such as the typewriter effect. If any issues come up, please feel free to send me an example scene. For the responses background, m...
- Mon Feb 09, 2015 8:10 am
- Forum: Dialogue System for Unity
- Topic: Trouble displaying a Variable
- Replies: 22
- Views: 3989
Trouble displaying a Variable
For the “Can’t add script – Can’t add component ‘WatchScale’ because it doesn’t exist.”: 1. Is the file named exactly "WatchScale.cs"? The Project view won't show the file extension. If you see "WatchScale.cs" in the Project view, then the file itself is probably named "Watc...
- Mon Feb 09, 2015 7:25 am
- Forum: Dialogue System for Unity
- Topic: Minor issues with UnityUIBarkSubtitleDialogueUI and UnityUIBarkUI
- Replies: 6
- Views: 1241
Minor issues with UnityUIBarkSubtitleDialogueUI and UnityUIBarkUI
The "Hidden" state is just a null state that the animator starts in. You can create a default transition from Hide to Hidden if you like. I just right now did this in the example scene (but not in the version that I sent you earlier today). It doesn't change the way the animator works, but...
- Mon Feb 09, 2015 7:18 am
- Forum: Dialogue System for Unity
- Topic: Trouble displaying a Variable
- Replies: 22
- Views: 3989
Trouble displaying a Variable
3844 wrote: To get something to display I’ve copied an Alert gameobject (with a GUILabel script) from a UI prefab and have included that into my Dialogue UI tree, and it’s displaying onscreen. Am I on the right track? Yes, that should work fine. Steps to add the script: 1. Save the script in my seco...
- Mon Feb 09, 2015 5:55 am
- Forum: Dialogue System for Unity
- Topic: Trouble displaying a Variable
- Replies: 22
- Views: 3989
Trouble displaying a Variable
The script above assumes that you've set up a Unity UI "Text" element and assigned it to "scaleLabel". If you're using legacy Unity GUI instead: using System.Collections; using PixelCrushers.DialogueSystem; using PixelCrushers.DialogueSystem.UnityGUI; public class WatchScale : Mo...
- Mon Feb 09, 2015 5:25 am
- Forum: Dialogue System for Unity
- Topic: Trouble displaying a Variable
- Replies: 22
- Views: 3989
Trouble displaying a Variable
Hi, Add a C# script like this to your scene: using UnityEngine; using System.Collections; using PixelCrushers.DialogueSystem; public class WatchScale : MonoBehaviour { public UnityEngine.UI.Text scaleLabel; //<--Assign this. void Start() { DialogueManager.AddLuaObserver("Variable[scale]", ...
- Mon Feb 09, 2015 5:09 am
- Forum: Dialogue System for Unity
- Topic: Minor issues with UnityUIBarkSubtitleDialogueUI and UnityUIBarkUI
- Replies: 6
- Views: 1241
Minor issues with UnityUIBarkSubtitleDialogueUI and UnityUIBarkUI
Please let me know if this updated package fixes the issue for you: UnityUI_Support_2015-02-09. If the animator is in the process of transitioning to the Show state and the Show trigger parameter is set true again, the animator doesn't reset back to false. The bark UI now does this manually to make ...
- Mon Feb 09, 2015 4:53 am
- Forum: Dialogue System for Unity
- Topic: Minor issues with UnityUIBarkSubtitleDialogueUI and UnityUIBarkUI
- Replies: 6
- Views: 1241
Minor issues with UnityUIBarkSubtitleDialogueUI and UnityUIBarkUI
Hi,
I can reproduce this issue. I'll try to issue a fix today.
I can reproduce this issue. I'll try to issue a fix today.
- Sat Feb 07, 2015 6:15 am
- Forum: Dialogue System for Unity
- Topic: Trouble making continue buttons invisible
- Replies: 3
- Views: 745
Trouble making continue buttons invisible
Happy to help!