Cov txheej txheem:

(2) Pib Ua Game - Ua Ntej Splash Screen hauv Unity3D: 9 Kauj Ruam
(2) Pib Ua Game - Ua Ntej Splash Screen hauv Unity3D: 9 Kauj Ruam

Video: (2) Pib Ua Game - Ua Ntej Splash Screen hauv Unity3D: 9 Kauj Ruam

Video: (2) Pib Ua Game - Ua Ntej Splash Screen hauv Unity3D: 9 Kauj Ruam
Video: Pog txawj tuag ua Dab 1/21/2020 2024, Hlis ntuj nqeg
Anonim
(2) Pib Ua Game - Ua Ntej Splash Screen hauv Unity3D
(2) Pib Ua Game - Ua Ntej Splash Screen hauv Unity3D

Hauv Cov Lus Qhia no koj yuav kawm paub yuav ua lub vijtsam txaws yooj yim hauv Unity3D li cas. Ua ntej, peb yuav qhib kev sib sau!

Kauj ruam 1: Ua Qhov Project

Ua Qhov Project
Ua Qhov Project

Thaum Unity tau qhib Kuv tau nyem rau ntawm "Tshiab" khawm nyob rau sab saum toj uas coj kuv mus rau lub vijtsam no. Koj tuaj yeem sau nws nyob txhua qhov chaw thiab khaws nws nyob txhua qhov tab sis tam sim no, Kuv yuav hu nws ua tej yam yooj yim.

Nco ntsoov tias qhov kev xaiv 3D yog zuam yog tias koj tab tom ua 3D game. Tab sis ua siab ncaj, nws tsis muaj teeb meem ntau npaum li ua rau nws tsuas yog ntxiv Directional Light uas koj tuaj yeem ntxiv tom qab. Ntawm no, Kuv yuav cia li zuam lub npov.

Kauj Ruam 2: Teeb Lub Canvas

Teeb Teeb Canvas
Teeb Teeb Canvas

Yog li thawj qhov kuv tau ua yog kuv ua ob daim ntawv npe hu ua "scenes" thiab "scripts".

Tom qab ntawd kuv ntxiv cov duab los ntawm txoj nyem rau ntawm Hierarchy -> UI -> Duab thiab hloov lub npe "Logo".

Koj lub vijtsam yuav tsum zoo ib yam li qhov no, tsis txhob txhawj yog qhov teeb tsa sib txawv.

Kauj Ruam 3: Ntxiv Scene thiab Script

Ntxiv Scene thiab Script
Ntxiv Scene thiab Script

Tom qab ntawd kuv yuav khaws qhov tshwm sim hauv "scenes" nplaub tshev npe "Splashscreen" los ntawm kev ntaus ctrl + s

Tom qab ntawd ntxiv C# tsab ntawv hauv "ntawv" nplaub tshev npe "Splashscreen" los ntawm txoj cai nyem -> Tsim -> C# tsab ntawv.

Kauj Ruam 4: Hloov Kho Cov Ntawv Splashscreen

Kho qhov Splashscreen Script
Kho qhov Splashscreen Script

Yog tias koj ob npaug nyem rau ntawm C# tsab ntawv, MonoDevelop lossis Visual Studio yuav qhib, tus kheej kuv siv Notepad ++ vim nws qhib sai npaum li cas.

Tom qab ntawd tshem tawm tag nrho cov cai ua ntej thiab luam+muab qhov no tso rau hauv tsab ntawv:

Splashscreen Tsab Ntawv

TSEEM CEEB! Kuv ua yuam kev

Yog tias koj muaj lus nug txog qhov chaws ua haujlwm tawm tswv yim dab tsi koj xav paub kuv yuav zoo siab pab!

Kauj Ruam 5: Teeb tsa Lub Splashscreen Controller

Teeb tsa Splashscreen Controller
Teeb tsa Splashscreen Controller

Yog li tam sim no rov qab mus rau Kev Sib Koom, thiab tsim qhov khoob gameobject los ntawm txoj nyem rau ntawm Hierarchy -> Tsim Empty thiab hloov nws mus rau "Splashscreen Controller".

Tam sim no luag cov ntawv "Splashscreen" mus rau Splashscreen Controller.

Koj yuav tsum pom qhov no.

Kauj Ruam 6: Txheeb Tus Txheej Txheem Splashcreen

Kho lub Splashcreen Controller
Kho lub Splashcreen Controller

Luag cov duab hu ua "Logo" mus rau "Splash Image", Ntaus "Ntawv qhia zaub mov" hauv "Qhov tshwm sim tom ntej", Koj tuaj yeem hloov plaub qhov txiaj ntsig tom ntej rau txhua tus lej koj xav tau (cov lej yuav muaj cov zauv zauv).

Kauj Ruam 7: Ntxiv Logo

Ntxiv Logo
Ntxiv Logo

Txog qhov haujlwm yooj yim no, kuv tsuas yog yuav ntxiv lub tshuab ziab khaub ncaws, yog li kuv tau mus rau google thiab rub lub logo ntawd, txawm li cas los xij, koj yuav tsum siv koj tus kheej lub logo yog tias koj muaj.

Koj yuav tsum qhib daim nplaub tshev uas koj lub logo nyob ntawd rub thiab tso daim duab rau hauv "Cov Khoom" nplaub tshev hauv Kev Sib Koom.

Tom qab ntawd nyem rau ntawm koj lub logo thiab nyob rau sab saud, hloov Hom Texture rau "Sprite (2D thiab UI)".

Tom qab ntawd nyob hauv qab nyem "Thov".

Kauj Ruam 8: Ntxiv Logo

Ntxiv Logo
Ntxiv Logo

Tam sim no nyem rau ntawm daim duab hu ua "Logo" thiab rub koj lub logo rau qhov Chaw Duab Duab.

Kauj Ruam 9: Teeb Lub Koob Yees Duab

Teeb Lub Koob Yees Duab
Teeb Lub Koob Yees Duab

Kauj ruam kawg yog hloov pauv keeb kwm yav dhau, nyem rau ntawm Lub Koob Yees Duab Loj thiab teeb tsa Clear Flags rau "Solid Color".

Tom qab ntawd hloov cov xim keeb kwm yav dhau los rau txhua yam koj xav tau, hauv qhov no, kuv teeb nws kom dawb.

Ua ntej koj ua dab tsi ntxiv kom ntseeg tau tias koj txuag los ntawm kev ntaus ntawv: ctrl + s

Yog tias koj ua txhua yam kom raug ces thaum koj nyem rau ntawm lub pob ua si nyob rau saum koj yuav pom lub vijtsam txaws!

Yog tias koj muaj teeb meem lossis yog koj muaj lus nug lossis lus pom, tawm tswv yim rau lawv hauv qab no!

Pom zoo: