类 SelectionManager实验性

The SelectionManager (accessible from the ExtensionContext) is responsible for the management of all Selection objects, and provides the user the ability to create new Selection objects for use within an extension.

属性

方法

属性

selection: Selection

The primary Selection object is always present (even if it's empty) and cannot be deleted. This object represents the main selection object which is always accessible through the UI, and by default is synchronized between the client and server.

This property can throw when used.

方法

  • 实验性

    返回 Selection

    Create a new, empty Selection object

    无法在只读模式下调用此函数,详见 WorldBeforeEvents

    This function can throw errors.