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 ] )?
I have 2 questions.
Re: I have 2 questions.
Hi,
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.
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.unitypackagegammaker95 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 absolute easiest way to add icons in dialogue text is to buy and use to TextMesh Pro. The Dialogue System includes TextMesh Pro integration.gammaker95 wrote:Second, Can I use some image in dialogue like icons ( text [ icon image ] )?
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.
-
- Posts: 9
- Joined: Fri Nov 20, 2015 10:48 pm
Re: I have 2 questions.
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.
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.
Re: I have 2 questions.
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.
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.
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.
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.