I have 2 questions.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
gammaker95
Posts: 9
Joined: Fri Nov 20, 2015 10:48 pm

I have 2 questions.

Post by gammaker95 »

Hello~
I think "Dialogue System" is cool asset.

I have 2 questions.

first, how do i hide alert window when scene starts?
I am using Generic Unity UI Dialogue UI in unity Ui prefabs folder.

when I play a scene, alert window showed and disappeared.
I tried to find a solution but I can't.

If I inactivated "Alert panel" before starting scene to avoid this then Unity warn "Animator does not have an AnimatorController" until Dialogue Panel inactivated.

Second, Can I use some image in dialogue like icons ( text [ icon image ] )?
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: I have 2 questions.

Post by Tony Li »

Hi,
gammaker95 wrote:first, how do i hide alert window when scene starts?
I am using Generic Unity UI Dialogue UI in unity Ui prefabs folder.

when I play a scene, alert window showed and disappeared.
I tried to find a solution but I can't.

If I inactivated "Alert panel" before starting scene to avoid this then Unity warn "Animator does not have an AnimatorController" until Dialogue Panel inactivated.
The updated Unity UI Support package fixes this issue and also adds support for animated portraits. You can download it from the Dialogue System Extras page or right here: DialogueSystem_UnityUI_2015-11-21a.unitypackage
gammaker95 wrote:Second, Can I use some image in dialogue like icons ( text [ icon image ] )?
The absolute easiest way to add icons in dialogue text is to buy and use to TextMesh Pro. The Dialogue System includes TextMesh Pro integration.

Unity UI's Text doesn't have a way to embed images inside Text elements. However, you can add Image elements to your Dialogue Panel, for example before or after your Text element. Then you can write a small script that has an OnConversationLine method. In that method, enable any Image elements that you want to use, and disable any others. If you provide some more details on what exactly you want to do, I'll be happy to provide more guidance.
gammaker95
Posts: 9
Joined: Fri Nov 20, 2015 10:48 pm

Re: I have 2 questions.

Post by gammaker95 »

thank you for your reply.

It is more detail about second question.
I want to make tutorial text with icon for more information.

For example, there are some text like below.

" Drag screen and you can find quest mark". (this is on alert window.)

in here, quest mark is green "!" mesh. So I want to this with green "!" icon.

Like this, "Drag screen and you can find quest mark (!-it is a icon) ".
Icon could be in middle of string or end.

I want to do these texts in some game texts.
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: I have 2 questions.

Post by Tony Li »

Here are two options:

1. Buy and use Text Mesh Pro. You can insert graphics inline in your text. It also creates beautiful text. It's on sale for 30% off.
  • Pro: Easy. No scripting required.
  • Con: Have to buy.
-or-

2. Create a subclass of UnityUIDialogueUI. Here is some information on making dialogue UI subclasses. Override the ShowSubtitle method. Parse the Subtitle text for special codes (you define the codes) that specify what icons to add. Break up the text into separate UI Text elements, and insert UI Image elements between them.
  • Pro: No extra cost.
  • Con: Requires intermediate scripting. Have to work closely with Unity UI in script.
Post Reply