文档

Unity Engine

Unity Engine

CreationToolsGroup

This class represents the creation tools group. Pass this class’s type to the ToolAttribute.group parameter to place your EditorTool button in the built-in creation tools group in the Tools overlay.
阅读时间1 分钟最后更新于 1 个月前

Definition

[Icon("Icons/Toolbars/CreationToolsGroup.png")]public sealed class CreationToolsGroup

Remarks

Only tools that create new objects and/or data in the Scene View should be registered to this group.

Examples

using UnityEditor.EditorTools;// Register Editor Tool as a creation tool[EditorTool("Custom Creation Tool", group = typeof(CreationToolsGroup))]public class CustomCreationTool : EditorTool { }