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
We have a coins you I created Wilson a hey
It's going to be a little bit different then actually just changing the text
A UI element
I'm going to do is actually create a UI Photoshop file
Is going to include a health bar in it so it's just go ahead and open up the level 1 PSB
Double click on that and would it create a very similar file
Service level 1 art file
Remember this our file is 3840 by 2160
There is going to create a new one
At 3840 x 2160
Create
Just really quick change the background
Be a little bit darker
So that we can see the UI elements that we create so we created a new layer here
Go ahead and create a rounded rectangle
Subtitled by -♪ online-courses.club ♪- We compress knowledge for you! https://t.me/joinchat/ailxpXoW3JVjYzQ1
Didn't see that just click and hold
Images rounded rectangle
Is going to have a radius of 25 pixels
No stroke going to have a white film
Just going to click and drag
And create
A white
Rounded rectangle
I'm going to leave it health
Bar
What's unlock this background layer that was created by default by clicking the log in less than name this
Background princesses reference and I just means this is for a reference in Photoshop
Use this background image inside of the unity in the assets folder
Art folder and then create new folder called you
Images called a style UI and be sure you choose the large document format that PSB
Not PSD which is the default
Say that
Image jump into unity
So it's going to import the PSD file
And again guys just like I level up here when we select our UI PSD file here
Reset the message type to fall wrecked
So that allows us to actually edit a spray
Create
Eternal individual sprites here
With bounding boxes around them
Meniscus
Is named the health bar too with the letter name was which is health bar
That looks great
So if we just drag the health bar with collapse this year
I'm not here
And drag the health bar sprite
Richest drag that in
Let's say maybe position it up towards the zero
About right there
Why is it going behind
What the reason why is because we're not actually dragging it in properly
Exactly not a u ion
If I hit play here
Note to self
It's actually
In the world it's not a UI element
That's because spriterenderer are not the component you wanna use
Creating images for UI
A Sprite renderer is going to be depending on the camera
We might something dead independent of the camera
Tesco head and just delete the health bar really quick
What I want to do is actually create an image component
On a game object in have there under the canvas game after
So just like a coins game object which has
Text component on
We want to create another game object
Has an image component on it
I just got a game object
You are an image
It's like that
Wo
Zoom out here
You can see
Ok I get it
Zoom out you can see we have a nice brownie box of 3840 by 2160
And then we have this UI on it
It's just a simple square because there's no sprite
The source image
In the image component
The first thing I want to do is just make sure this name is proper so health
Bar
And remember we also want to make sure that the
Encopresis is Settle top left
Just like we did with the coins text
Right
And then finally we can just go ahead and drag the health bar
Into the images source image slot
Alright so far
So good I guess got some weird scaling issues
We're heading clip this set native size button
Alright there we go OK cool
So we drag it over here
Now we have a health bar a bar Queen's that looks great
Basically we're going to work this to scale down and it's weird
Based on
The players health
So what happens when I just drag this down slowly
It looks like
Scaling towards the centre
We don't want that we actually wanted to go from right to left
As we adjust the width
So the way that we do that
Is simply change the pivot
Value here
In the recttransform component
The recttransform component is similar to the transform component of any game object in your game
Except the recttransform
Actually
Interact with the Candice
Right here
Directions form is unique to UI element using a standard transform component
Erect transform component is by default going to be added to UI elements
Pivot is one of the values that knew that we can change so we change the pivot value
Of the X20
And then scale it
Are we good
Right to left now
As perfect
Now all we need to do is just dragging over here
Maybe try scaling it again see outlook
That's great
There's an issue maybe some of your noticing
Rounded corners here are starting to get sharper
When is greater than the original default width and then when it gets smaller
A slowly start to shrink
We definitely don't want that
Where we fix that is simply to go back to rui here
Go to display editor
Can you use a something called slicing
Eclipse play editor
Zoom in
To our surprise here
Now the bounding box here in blue
Just basically specifies
Where were cutting this out
You think about this big image here
As almost like a transparency
With
Please images printed on
We could technically cut it out like this if you wanted to
Let's go ahead and set the blue bounding box
Toolbar right here
You may have been wondering where the Green dots
That's how we're going to Centre Parcs life
What is allows us to do if we click on the green door in drag down and then drag down here
And maybe here as well
Kinda hard to see is in it let's go ahead and click this button here
Set the background black ok now we can really see
What were looking at ok in over here as well grab this green.in dragon over
What this means that no matter how
Bigger how wide are how tall
We make this pride
The corners will not scale everything else will scale
Except for the corners
Again that's what the green dots signify
The blue Max just signifies where were cutting the spread out
So actually this dragon to that right there there we go
Alright
So this might not make sense but we're going to go ahead and apply here and I can show you exactly what's going on
Alright so let's shift the wet here
Well looks like it's not really
Changing anything we're still getting a squashed look
You know change the weight using the rat tour
Let's try that as well known as the width values as a shift using the red door
Our changing just like we were doing earlier like this
Well
Still getting a squashed look so he didn't fix it why is that
What's because you know image type it's not a symbol
Actually said it to
Sliced
So now you nearly knows that we want to take advantage of those green dots
Are there we go awesome
So no matter how far we go
Is still going to look like a nice clean rounded rectangle
Ok there's one problem here
Bring it down
Some weird artefacts of wearside make this bigger
What's going on there
So strange zoom in here
The more we zoom in the last artefact it looks
That's because we using something tipping no photos of you who have worked at 3D game you know what mething is
Mapping basically compressors a texture the further away from the actual object you are
We need mapping for you ion it's because well
I was going to be there whenever going to be a different size
Doesn't really want to use mate mapping for 2D and general so what we going to do is just go to are you I am not here
We're going to go to advanced
I'm going to change the properties
Are you a PSD file
Change the generate mipmaps to false
Subtitled by -♪ online-courses.club ♪- We compress knowledge for you! https://t.me/joinchat/ailxpXoW3JVjYzQ1
So
Reply
Now that these properties are changed
Individual PSB file
If we select this and drag back down
Perfect
Resin any mapping
It just for clarity guys we're not going to be adjusting
The scale ok
We're not going to be adjusting the scale
We're going to be adjusting the whip
There's a difference
The scale is the scale of the actual gameobject
What is the scale of this individual image
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.