Skip to content

Game.UI.Editor.EditorAssetImportTool

Assembly:
Assembly-CSharp

Namespace:
Game.UI.Editor

Type:
public class

Base:
EditorTool

Summary:
A small editor tool class that represents the Asset Import tool in the in-game/editor UI. It exposes a constant tool identifier and initializes inherited EditorTool properties (id, uiTag, icon, panel) in the constructor. The panel instance is obtained from the provided Unity.Entities.World using GetOrCreateSystemManaged for AssetImportPanel. This class contains no runtime logic beyond initialization and relies on the base EditorTool for behavior and integration with the editor UI.


Fields

  • public const string kToolId = "AssetImportTool"
    A constant string identifier for the tool. Can be used to register, look up, or compare this tool by id.

Properties

This class does not declare any properties of its own. It configures and uses inherited properties from EditorTool such as: - id (string) — tool identifier - uiTag (string) — UI tag used to find UI elements (button/panel) - icon (string) — path to the tool icon - panel (EditorPanel or derived) — UI panel instance associated with the tool

Constructors

  • public EditorAssetImportTool(World world)
    Initializes a new instance of EditorAssetImportTool. It sets:
  • id to "AssetImportTool"
  • uiTag to "UITagPrefab:AssetImportButton"
  • icon to "Media/Editor/AssetImport.svg"
  • panel to the AssetImportPanel instance retrieved/created from the provided World via world.GetOrCreateSystemManaged()

Note: Requires Unity.Entities.World and that an AssetImportPanel system/type is available and registered in the project.

Methods

This class does not declare any methods. It relies on EditorTool base class methods and lifecycle for behavior.

Usage Example

// Given a valid Unity.Entities.World instance 'world':
var assetImportTool = new Game.UI.Editor.EditorAssetImportTool(world);

// The constructor sets up id/uiTag/icon and assigns the AssetImportPanel from the world.
// After instantiation the tool can be registered or used according to the EditorTool lifecycle.