Extending Unity with Editor Scripting
暫譯: 擴展 Unity 的編輯器腳本

Angelo Tadres

  • 出版商: Packt Publishing
  • 售價: $2,010
  • 貴賓價: 9.5$1,910
  • 語言: 英文
  • 頁數: 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 編輯器的功能以適應平台遊戲

  • 學習如何使用資產預處理器配置和控制資產導入管道

  • 提供逐步、易於理解的指南,幫助您創建和自定義符合視頻遊戲開發團隊需求的構建管道

本書適合誰


本書適合任何對使用 C# 進行 Unity 編程有基本了解的人,並希望學習如何通過 Unity 編輯器腳本擴展和創建自定義工具,以改善開發工作流程並簡化視頻遊戲開發。

您將學到什麼



  • 使用 Gizmos 創建調試的視覺輔助工具

  • 使用自定義檢查器、屬性和裝飾器繪製器、編輯器窗口和處理器擴展編輯器功能

  • 使用可腳本化物件以持久的方式保存您的視頻遊戲數據

  • 使用 GUIStyles 和 GUISkins 改善自定義工具的外觀和感覺

  • 配置和控制資產導入管道

  • 改善構建創建管道

  • 在您的團隊中分發自定義工具或在資產商店中發布它們

詳細內容


Unity 最強大的功能之一是其可擴展的編輯器。通過編輯器腳本,可以擴展或創建功能,使視頻遊戲開發變得更加簡單。對於 Unity 開發者來說,這是一個重要的主題,因為將 Unity 編輯器腳本應用於視頻遊戲可以節省大量時間和資源。


本書旨在涵蓋使用功能性平台遊戲的 Unity 編輯器腳本的所有基本概念,該遊戲需要改善工作流程。


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

風格與方法


本書採用逐步的方法,幫助您完成一個關卡編輯器工具、一個自定義配置的資產導入管道,以及一個完全調整為視頻遊戲的構建管道。