类 SimpleToolWrapper实验性

A simple class wrapper to inherit in your tool which contains the initialization and storage of the simple tool component utility. See one of the Simple samples to see how to use this class and the wrapper framework

实现

构造函数

访问器

  • get session(): IPlayerUISession<Record<string, never>>
  • 实验性

    返回 IPlayerUISession<Record<string, never>>

    The player UI session that the tool is running in Use this to access the player UI session, or any of the session's components

  • get simpleTool(): ISimpleTool
  • 实验性

    返回 ISimpleTool

    The simple tool instance that is created and managed by the wrapper Use this to access any of the tools components, or mess with the tools window visibility

方法

  • 实验性

    返回 void

    Teardown the simple tool instance This will call the teardown function on the simple tool instance This function is automatically invoked by the Editor Extension system when the editor is shutting down