"Lan Unity Development Fundamentals Three" lesson 5 unity Component Development
Recommended Video Lecturer Blog: http://11165165.blog.51cto.com/
Unity Component Development
Let's learn this lesson. Unity , you first need to look at Unity 's Engineering and application relationships:
First, Unity 's Engineering and Applications
Assets the resources needed for the project.
The library contains the required libraries .
Projectsettings is a project setup file.
Temp files are stored in temporary.
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/87/34/wKiom1fXd_WA76xyAAw7SmATeGY468.png-wh_500x0-wm_3 -wmp_4-s_2232501832.png "style=" Float:none "title=" Unity engine lesson 5 Unity Component Development 359.png "alt=" Wkiom1fxd_ Wa76xyaaw7smategy468.png-wh_50 "/>
lesson_05 Project Folder Contents
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/87/31/wKioL1fXd_nRqsn7AAoOt63oax0425.png-wh_500x0-wm_3 -wmp_4-s_3820661773.png "title=" Unity engine lesson 5 Unity Component Development 537.png "style=" Float:none; "alt=" Wkiol1fxd_ Nrqsn7aaoot63oax0425.png-wh_50 "/>
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/87/34/wKiom1fXd__yEkpMAAqVNurbyIw843.png-wh_500x0-wm_3 -wmp_4-s_168637194.png "title=" Unity engine lesson 5 Unity Component Development 696.png "style=" Float:none; "alt=" wkiom1fxd__ Yekpmaaqvnurbyiw843.png-wh_50 "/>
Ii. framework of the project
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/87/34/wKiom1fXeAbTKv3oAAymCtbvPtQ019.png-wh_500x0-wm_3 -wmp_4-s_3386848060.png "title=" Unity engine lesson 5 Unity Component Development 862.png "style=" Float:none; "alt=" Wkiom1fxeabtkv3oaaymctbvptq019.png-wh_50 "/>
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/87/31/wKioL1fXeA3y_7ftAAvGNh6Yv-0744.png-wh_500x0-wm_3 -wmp_4-s_2700962905.png "title=" Unity engine lesson 5 Unity Component Development 1183.png "style=" Float:none; "alt=" Wkiol1fxea3y_ 7ftaavgnh6yv-0744.png-wh_50 "/>
Second, Component Development
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/87/31/wKioL1fXeBOjW_BzAAq786T0Xnw558.png-wh_500x0-wm_3 -wmp_4-s_3627335168.png "title=" Unity engine lesson 5 Unity Component Development 1393.png "style=" Float:none; "alt=" Wkiol1fxebojw_ Bzaaq786t0xnw558.png-wh_50 "/>
Back to in Unity to demonstrate:
Transform components,Cube(Mash filter Mesh Filters
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/87/31/wKioL1fXeBeS4m7_AAg-NK2Y5jM505.png-wh_500x0-wm_3 -wmp_4-s_2943155116.png "title=" Unity engine lesson 5 Unity Component Development 1575.png "style=" Float:none; "alt=" wkiol1fxebes4m7_ Aag-nk2y5jm505.png-wh_50 "/>
Box Collider Components--Components for collision detection
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M01/87/34/wKiom1fXeByTImaIAAqEC023cLA417.png-wh_500x0-wm_3 -wmp_4-s_3524429633.png "title=" Unity engine lesson 5 Unity Component Development 1764.png "style=" Float:none; "alt=" Wkiom1fxebytimaiaaqec023cla417.png-wh_50 "/>
Mesh renderer component--grid renderer, set different textures
Third, Script Component
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/87/34/wKiom1fXeCLgphHYAAur5sxWQkk048.png-wh_500x0-wm_3 -wmp_4-s_2649494282.png "title=" Unity engine lesson 5 Unity Component Development 1929.png "style=" Float:none; "alt=" Wkiom1fxeclgphhyaaur5sxwqkk048.png-wh_50 "/>
Add new script in the Properties panel and then create a scripting, language select C #, then add, double click to open the script!
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/87/31/wKioL1fXeCmxwYyGAAsC32WqCJw790.png-wh_500x0-wm_3 -wmp_4-s_788998505.png "title=" Unity engine lesson 5 Unity Component Development 2135.png "style=" Float:none; "alt=" Wkiol1fxecmxwyygaasc32wqcjw790.png-wh_50 "/>
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/87/34/wKiom1fXeC-y8628AAoxDjUk29U982.png-wh_500x0-wm_3 -wmp_4-s_2591183874.png "title=" Unity engine lesson 5 Unity Component Development 2293.png "style=" Float:none; "alt=" Wkiom1fxec-y8628aaoxdjuk29u982.png-wh_50 "/>
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/87/31/wKioL1fXeDLQbOJMAAeMzhOHU0k407.png-wh_500x0-wm_3 -wmp_4-s_2156539462.png "title=" Unity engine lesson 5 Unity Component Development 2452.png "style=" Float:none; "alt=" Wkiol1fxedlqbojmaaemzhohu0k407.png-wh_50 "/>
To mount the script to the game object, Text scripts must learn to inherit Monbehaviour
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/87/34/wKiom1fXeDrBM9swAAvFkl0YK4A106.png-wh_500x0-wm_3 -wmp_4-s_2889839793.png "title=" Unity engine lesson 5 Unity Component Development 2647.png "style=" Float:none; "alt=" Wkiom1fxedrbm9swaavfkl0yk4a106.png-wh_50 "/>
"Lan Unity Development Fundamentals Three" lesson 5 unity Component Development