

A custom Editor window is a class that derives from the EditorWindow class.Ĭreate a new script file M圜ustomEditor.cs under the Assets/Editor folder. More info See in Glossary in your project. You can create Editor windows through C# scripts A piece of code that allows you to create your own Components, trigger game events, modify Component properties over time and respond to user input in any way you like. You might also have to add additional using directives at the top of the file, as shown below.

For this guide please disable the UXML and USS checkboxes. From the Project window, right-click and select Create > UI Toolkit > Editor Window. You can generate the necessary code to create an Editor window script in the Unity Editor.

This guide is for developers familiar with Unity, but new to UI Toolkit. You can find the completed example in the Editor window script section. Selecting a sprite in the list will display the image on the right side of the window. More info See in Glossary browser, which finds and displays all sprites inside the project, and shows them as a list. If you are used to working in 3D, Sprites are essentially just standard textures but there are special techniques for combining and managing sprite textures for efficiency and convenience during development. In this tutorial, you will create a sprite A 2D graphic objects.

More info See in Glossary resizable and handling hot-reloading. Unity currently supports three UI systems. This guide covers creating an Editor window through code, reacting to user input, making the UI (User Interface) Allows a user to interact with your application. Custom Editor windows allow you to extend Unity by implementing your own editors and workflows.
