Version: 2021.1
Getting Search help
Executing API methods

Using the calculator

The Calculator Search Provider computes expressions directly in Search. Enter any expression that is valid in a numerical text field in Unity, and Search displays the result in the results area.

NOTE: This is a special search. You must use its search token to execute it. You cannot make it an active Search Provider, or combine it with other Search Providers.

Search token: = (equals sign)

Default action: Logs the result of the expression to the console, and copies it to the clipboard.

Context menu actions:

Action: Función:
Exec Logs the result of the expression to the console, and copies it to the clipboard.

Note: To query this provider you need to explicitly add = to the query.

Supported operators + - * / % ^ ( ) Example:
=42/34 + (56 % 6)

=23 * 9 ^ 3


Calculator Search Provider

Getting Search help
Executing API methods
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961