Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranî)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
Now believe it or not guys the
The audio triggers
The audio trigger class it actually allows us to control whether a title
Cures for this level so we wanted to have the name of this level which I'm gonna call Skyline City if you want
To appear we can actually just use this audio trigger script and I'll show it to you in a sec we could use
Actually make it appear
Just jump into the audio trigger script and also you have AIDS
I'm actually a curry
You can see here
I'm for you guys it was probably commented out in the previous video going to delete
And basically was going to say something like the UI animator
Inside the game manager
Subtitled by -♪ online-courses.club ♪- We compress knowledge for you! https://t.me/joinchat/ailxpXoW3JVjYzQ1
Should set the
Animator Trigger 2
Show tidal
Something like that ok so the moment the player triggers
With
The box Collider
8 controls title is set to true
Then
We're going to set the trigger to show title
Ok
So it's going to be written some like this game manager
The Instance
That
UI animator and we don't have a variable called that yes we need to create one
Set Trigger
Show tail
Something like that ok
United States got a red zig zag underneath a
UI animator does so the reason why is because we need to go into the game manager script
I just make sure we create a new Public Enemy
Where to call this new i n a m
I can see that you are in a mirror is no longer
Getting there
Sophie go into unity now
If you got a game manager we now have this
Daiba here called UI animator
So we don't actually have an animator on are you I currently
We can go ahead and create one
Just cooking create animation
Are we going to create a new animation
In a new folder
Recall this folder UI
Where to call this see here
UI
Title fade in
Take that out
Duchess go ahead in copy this coins
You are here
And we're going to paste it here I'm going to call this
Tidal
It was double click on it
Alright so there it is
It is drag this title the centre here
And make sure we set the alignment to Centre
Always centres up inside of the canvas
No matter what the screen size is
And also just wondering the alignment
A paragraph to be centred
Anime call this
Skyline
City
Ok
Message make sure I really precise without positions
Any accidents 0 in the Y
Alright my sure guys
Make sure if you're working outside of a prefab where is hell we were working
I'm outside the actual game manager prefab and we added this title in YouTuber so plus I can't hear
It's also
The actual colour of the text here is none blue so that means that this is an additional prefab that's not part of the
Prefab
But we want the title to be part of the game in your prefab so that just go to
Reply all
Ok so now we have this information window if you say
UI we have is animation window because it now has the animator attached to it
So we need to do is just click record
Believe it or not guys if something's a child of an animator component so in this case the tile
Actually anime the title
As part of the EU eyes in animator
Tony's case we're going to set the colour
0
Images copy this key from here
Go to about one second
And then fade in
So just go up to for a pass it here
MN
We're going to hold that for a second and then fade Out
4 seconds
Something like this
Obviously guys
You can do this with code and I think most developers out there would probably by the fault
Do this with code
But I found that
If you want to get things done quickly and also have a lot of control over how something looks using the animation window is
Best bet and guys we can add sound effects to this wanted by just adding animated function script like we've been
For the player in the enemies as well so we can add particles we can add sound effects screen Shake
Everyone into you to make this title really pop for now
It is going to fade in
Ok
Just yet now I need to go to where I am
Three here
And
Make sure you are selected in your notice that by default gonna start playing the title
We don't want that so let's go ahead and create new empty state
We're going to call this
Empty
This is going to be our default state
Are we going to make transition
And then we're going to create another train station so it's gonna go
To the fighting
If there is a certain parameter what is the perimeter well
It's the trigger
Show title in a sinner scripture
Game manager that instance that you are a animator set Trigger
Show title that condition
Socio tidal
We don't want some exit time we want to immediately show the title
Transition duration
Now going from the actual fighting
Empty after it's done
We do want an exit time of 1
And we don't want to transition
Ok
I just make sure that it's not gonna loop so let's turn off the loop we don't want the title to fade in over and over
Alright
There's just one more thing we need to do here guys
If we go to our game manager here
We need to make sure we're selling are you I am so I'm going to drag rui
Into the UI animator is going to automatically find that in a metre
If we hit play nothing's going to happen and the reason why it's because we need to go to
One of our game objects that actually uses the audio trick her class so we can do a song
Music or we can go to the end sound of one or two
And the reason guys I've linked the title
The ability to control the titles and M to the audio Trigger
Is simply because in my games whenever you enter a new zone it's always going to start playing music
Show the title so that's just how I like to do it but if you guys want to separate out the two you can certainly create a title
Yoga class if you wanted to or you know keep it inside of the audio Trigger
In my case I wanted to start playing the moment the music starts playing as well ok
So we're just going to turn on controls title
And then also
We have a box Collider here
Will we actually go to a script you'll see that the UI animators trigger is controlled
Only within our ontriggerstay function here so we need a box Collider to exist
We need it enabled
Songs by head enable it
United States
Not very wide here knows the green here is not very wide
So just make it
Provide to the moment the player starts playing a level
The title appears
Save this in here
And also just be sure our prefabs are all
Apply all to the game manager
Prefab and then Hitler
The nationalist that the title appears
It looks like we have a little bit of a great year but overall that's pretty good
Looks like it's going back to an opacity of 100%
Why is that that because at the
Empty state here it's going back to its default
Alpha value
Sophie go to a title here what's its default out of value it's actually 100% so I was dragging down to 0
By default and then Hitler
Alright perfect
Now to ensure that the player can't go back into the trigger
And start the tidal again
Are we going to do is just simply say
Controls
Title equals
Boss
That way they can trigger it again and again if the exit and re-enter the trigger zone
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.