0% found this document useful (0 votes)
145 views33 pages

Unity Fungus 01

Uploaded by

t112ac1004
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
145 views33 pages

Unity Fungus 01

Uploaded by

t112ac1004
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 33

Unity3D and Fungus

Installation
Download Fungus

Fungus is a free AVG plugin for Unity3D
– https://github.com/snozbot/fungus/releases
– Download the newest version in .unitypackage format.
Import to a New Project

Start a new project and import Fungus.
– Drag the unitypackage into asset browser.
Import to a New Project

Import All
Wait for Import Finish

Two Folders will be created
– Fungus
– FungusExamples
Run Example

Open and play the Sherlock demo scene:
– Assets/FungusExamples/Sherlock
Create Lines
Open A New Scene in 2D

Start a new scene
– Click 2D to view the scene in 2D. This will change your view angle.
Add a New Fungus Flowchart

Tools → Create → Flowchart
Edit the Content of Flowchart

Go to the inspector of Flowchart GameObject. Click Open Flowchart
Window.
Add a New Line

Select the New Block. It could be taken
as one paragraph of narrative lines.

Press the add button to add a new
command into the flowchart.
– Use Narrative → Say to add a new line.
Set a Line

Select the Say command. Set the
Story Text to be "Hello World".
Test

Play and test. You should be able to see the line which just added to
your Scenario Block.

Try adding more lines.
Settings
Block

Block name: the name of this block

Custom Tint: tint the surface color of this
block

Description: a short description for this
block

Execute on Event: when this block should
be started.
– Wait for frames: how many frames will
this block wait before it starts.

Commands: the list of commands that will
be execute when this block starts.
Flowchart

Description: the description of this
flowchart.

Color Commands: whether to colorize the
command list in blocks.

Save Selections: save the selected block
and commands when you save the scene.

Localization ID: an unique ID for this
flowchart using localized string keys.

Show Line Number: shows line numbers in
command list.

Variables: variables kept and owned by this
flowchart.
Narrative/Say

Character: the character shown for this line.

Story Text: the content which the character says.

Description: description for this line.

Extend previous: this line will be append to last line. Will
not redraw the dialog window.

Voice over clip: the voice clip to play for this line.

Show always: how will this command behaves when it
is executed for multiple times.

Fade when done: fade effect when this line is finished.

Wait for click: whether is needs a click to close this line.

Stops voiceover: the voice will be stopped when the text
finishes typing.

Set say dialog: set the GameObject of say dialog.

Wait for VO: wait for the voiceover to complete before
continuing.
Character
Add a Character

Tools → Fungus → Create → Character
Set a Character

Name text: name of the character.

Name color: the color for name text.

Sound effect: text typing sound for this
character.

Set say dialog: say dialog for this character

Description: description for this character

Portraits: list of sprites that can be
displayed for this character.
– All portrait images should be of the
same resolution.

Portrait face: to which direction does your
portrait assets look toward.
Set a Character

face0 face1 face2


Assign Character in Say

Dialog
Add a Dialog

Tools → Fungus → Create → Say Dialog

A default dialog GameObject will be shown.
Dialog Settings

Fade duration: duration to fade in/out

GameObjects / Components bindings: Continue button, Dialog Canvas, Name
Text (or Name Text GO), Story Text (or Story Text GO), Character Image.

Fit Text to image: Adjust width of text when character image is shown.

Close other dialogs: close other dialogs if there is any.
Dialog Settings

Writer: type writer effect
– Target text object: the text object for writer
– Punch object: fungus will shake the position of this object when player get
punched.
– Writing speed: the speed to type characters
– Punctuation pause: the pause for punctuation characters.
– Hidden text color: the color for characters that has not been revealed yet.
– Instant complete: one click to finish typing and flush whole content.
Dialog Settings

Writer Audio:
– Volume: volumes for the sounds of writer
– Loop: loop the sound in sound effect mode
– Input sound: sound for player click
– Audio mode: audio mode for typing

Beeps: allows different sounds to be mixed

Sound effect: use one sound only
Dialog Settings

Dialog Input:
– Click mode: can be set to "Click Anywhere/on dialog/on button"
– Next click delay: cooldown duration to allow consecutive click
– Cancel enabled: allow user to fast forward dialog.
– Ignore menu click: ignore click if menu dialog is active.
Stage
Add a Stage

Tools → Fungus → Create → Stage
– Stage defines available character positions

Middle, Left, Right, Offscreen Left, Offscreen Right
– You can add background image to Stage

Right click on Stage/Canvas, then select UI → Raw Image
Swap Between Stages

You can use Control Stage/Swap to swap between 2 stages.
– Display: set this to Swap in order to swap between 2 stages.
– Replace: the "from" stage
– With: the "to" stage
– Wait until finished: this enforce the swapping animation to play to the end before user
can perform any click.
Q&A

You might also like