diff --git a/Source/Editor/Windows/ToolboxWindow.cs b/Source/Editor/Windows/ToolboxWindow.cs index 15d4a0948..aeac41c6d 100644 --- a/Source/Editor/Windows/ToolboxWindow.cs +++ b/Source/Editor/Windows/ToolboxWindow.cs @@ -232,12 +232,15 @@ namespace FlaxEditor.Windows private Item CreateActorItem(string name, Type type) { - return new Item(name, GUI.Drag.DragActorType.GetDragData(type)); + return CreateActorItem(name, new ScriptType(type)); } private Item CreateActorItem(string name, ScriptType type) { - return new Item(name, GUI.Drag.DragActorType.GetDragData(type)); + return new Item(name, GUI.Drag.DragActorType.GetDragData(type)) + { + TooltipText = Editor.Instance.CodeDocs.GetTooltip(type) + }; } private ContainerControl CreateGroupWithList(Tabs parentTabs, string title, float topOffset = 0)