- Unity 3.x Game Development by Example Beginner's Guide
- Ryan Henson Creighton
- 179字
- 2021-04-02 18:34:07
Time for action – Adding a light
Let's add one of these virtual lights to our Scene so that we can see our objects a bit better.
- In the Scene view frame, click the Wireframe button and switch to Textured rendering. Then click on the little light icon (it looks like a sun) a few buttons over to see the effects of our (as-yet-non-existent) lighting. Your ball and paddle should look as dreary and dark gray as they do in the Game view.
- In the menu, click on Game Object | Create Other. The three types of lights that Unity supports are listed there: point light, spotlight, and directional light.
- Choose Directional Light.
A new directional light is added to the Scene. The icon also looks like a little yellow sun. When the light is selected (as it is now), a tube of yellow rays shoot out from it. This tube shows us which way the light is pointing.

Notice that one side of your ball is now lit, and the objects in the Game view have brightened up.
推薦閱讀
- Learning NServiceBus(Second Edition)
- Beginning Java Data Structures and Algorithms
- ASP.NET Core 5.0開發入門與實戰
- Selenium Design Patterns and Best Practices
- 實戰低代碼
- 老“碼”識途
- Android 應用案例開發大全(第3版)
- Getting Started with LLVM Core Libraries
- Access 2010數據庫應用技術(第2版)
- Scratch3.0趣味編程動手玩:比賽訓練營
- Node.js開發指南
- PHP 8從入門到精通(視頻教學版)
- 超簡單:Photoshop+JavaScript+Python智能修圖與圖像自動化處理
- 實戰Python網絡爬蟲
- 企業級Java現代化:寫給開發者的云原生簡明指南