Extending Unity with Editor Scripting

Angelo Tadres

  • 出版商: Packt Publishing
  • 售價: $1,940
  • 貴賓價: 9.5$1,843
  • 語言: 英文
  • 頁數: 268
  • 裝訂: Paperback
  • ISBN: 1785281852
  • ISBN-13: 9781785281853
  • 相關分類: 遊戲引擎 Game-engine
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

Put Unity to use for your video games by creating your own custom tools with editor scripting

About This Book

  • Acquire a good understanding of extending Unity's editor capabilities for a platformer game by using Gizmos, custom inspectors, editor windows, scriptable objects, and more
  • Learn to configure and get control over your asset import pipeline using asset preprocessors
  • A step-by-step, comprehensible guide to creating and customizing a build pipeline that fits the necessities of your video game development team

Who This Book Is For

This book is for anyone who has a basic knowledge of Unity programming using C# and wants to learn how to extend and create custom tools using Unity editor scripting to improve the development workflow and make video game development easier.

What You Will Learn

  • Use Gizmos to create visual aids for debugging
  • Extend the editor capabilities using custom inspectors, property and decorator drawers, editor windows, and handles
  • Save your video game data in a persistent way using scriptable objects
  • Improve the look and feel of your custom tools using GUIStyles and GUISkins
  • Configure and control the asset import pipeline
  • Improve the build creation pipeline
  • Distribute the custom tools in your team or publish them in the Asset Store

In Detail

One of Unity's most powerful features is the extensible editor it has. With editor scripting, it is possible to extend or create functionalities to make video game development easier. For a Unity developer, this is an important topic to know and understand because adapting Unity editor scripting to video games saves a great deal of time and resources.

This book is designed to cover all the basic concepts of Unity editor scripting using a functional platformer video game that requires workflow improvement.

You will commence with the basics of editor scripting, exploring its implementation with the help of an example project, a level editor, before moving on to the usage of visual cues for debugging with Gizmos in the scene view. Next, you will learn how to create custom inspectors and editor windows and implement custom GUI. Furthermore, you will discover how to change the look and feel of the editor using editor GUIStyles and editor GUISkins. You will then explore the usage of editor scripting in order to improve the development pipeline of a video game in Unity by designing ad hoc editor tools, customizing the way the editor imports assets, and getting control over the build creation process. Step by step, you will use and learn all the key concepts while creating and developing a pipeline for a simple platform video game. As a bonus, the final chapter will help you to understand how to share content in the Asset Store that shows the creation of custom tools as a possible new business. By the end of the book, you will easily be able to extend all the concepts to other projects.

Style and approach

This book uses a step-by-step approach that will help you finish with a level editor tool, a custom configuration for the asset import pipeline, and a build pipeline totally adjusted to the video game.

商品描述(中文翻譯)

使用編輯器腳本在您的視頻遊戲中運用Unity,創建自己的自定義工具

關於本書
- 通過使用Gizmos、自定義檢查器、編輯器窗口、可腳本化對象等,深入了解擴展Unity編輯器功能以用於平台遊戲的能力
- 學習使用資產預處理器配置和控制資產導入流程
- 逐步指南,創建和自定義適合您的視頻遊戲開發團隊需求的構建流程

適用對象
本書適用於具備基本的Unity C#編程知識並希望學習如何使用Unity編輯器腳本擴展和創建自定義工具以改進開發工作流程並使視頻遊戲開發更加輕鬆的任何人。

學到什麼
- 使用Gizmos創建用於調試的視覺輔助工具
- 使用自定義檢查器、屬性和裝飾器繪製器、編輯器窗口和控制點擴展編輯器功能
- 使用可腳本化對象以持久方式保存視頻遊戲數據
- 使用GUIStyles和GUISkins改進自定義工具的外觀和感覺
- 配置和控制資產導入流程
- 改進構建創建流程
- 在團隊中分發自定義工具或在資產商店中發布它們

詳細內容
Unity最強大的功能之一是其可擴展的編輯器。通過編輯器腳本,可以擴展或創建功能,使視頻遊戲開發更加輕鬆。對於Unity開發人員來說,這是一個重要的主題,因為將Unity編輯器腳本適應視頻遊戲可以節省大量時間和資源。

本書旨在涵蓋Unity編輯器腳本的所有基本概念,並使用一個需要改進工作流程的功能性平台遊戲作為示例項目。

您將從編輯器腳本的基礎知識開始,通過示例項目(一個關卡編輯器)來探索其實現方式,然後使用場景視圖中的Gizmos進行調試的視覺提示。接下來,您將學習如何創建自定義檢查器和編輯器窗口,並實現自定義GUI。此外,您還將發現如何使用編輯器GUIStyles和編輯器GUISkins更改編輯器的外觀和感覺。然後,您將探索使用編輯器腳本來改進Unity視頻遊戲的開發流程,設計特定的編輯器工具,自定義編輯器導入資產的方式,並控制構建創建過程。逐步進行,您將在創建和開發簡單平台遊戲的過程中使用和學習所有關鍵概念。作為獎勵,最後一章將幫助您了解如何在資產商店中共享內容,展示自定義工具的創建作為一種可能的新業務。通過本書,您將輕鬆能夠將所有概念擴展到其他項目中。

風格和方法
本書使用逐步方法,幫助您完成一個關卡編輯器工具,一個用於資產導入流程的自定義配置,以及完全適應視頻遊戲的構建流程。