官术网_书友最值得收藏!

Summary

In this chapter, we introduced you to the editor scripting API and also the project that we will use in this book.

With editor scripts, we were able to customize how Unity works and customize the workflow based on our specific requirements.

When you work with editor scripts, remember to use the UnityEditor namespace and save the scripts inside a folder with the name Editor.

If for some reason you must use the editor scripting API outside an Editor folder, remember to use the directives #if and #endif with the UNITY_EDITOR conditional compilation symbol to exclude that part of the code in the video game build.

If you plan to create a custom tool in your project, always consider these two things:

  • When you design a tool, always consider the user for whom you are building the tool and involve them in the design and creation process. If your tool requires a custom GUI, creating mockups is always a good alternative to get an idea of the final result. Remember, there is nothing worse than a tool that is not easy to use and doesn't solve the specific problem.
  • Always evaluate the cost of creating the tool and the time you want to invest in that. Ensure that the time and resources you spend creating the tool itself to save more time and resources later during development.

In the next chapter, we will continue working on the Level Creator, integrating the use of gizmos to display a grid meant to be used as guides in our tool.

主站蜘蛛池模板: 德昌县| 重庆市| 邵阳县| 江孜县| 临清市| 榆社县| 鹿泉市| 隆回县| 麻阳| 广宁县| 乌兰察布市| 金湖县| 城步| 溧水县| 永福县| 双柏县| 崇阳县| 阿图什市| 隆安县| 平武县| 思茅市| 黄梅县| 安阳县| 沂南县| 舞阳县| 望奎县| 荥阳市| 靖宇县| 彩票| 喀喇沁旗| 兴城市| 仁怀市| 青岛市| 阜南县| 兴化市| 囊谦县| 尉犁县| 道孚县| 吉安市| 平陆县| 三穗县|