IsAvailable()
Checks whether the custom editor tool is available based on the state of the editor.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.EditorTools
- Assembly: UnityEditor
public virtual bool IsAvailable()
Returns
Type | Description |
|---|---|
| bool | Returns true if the custom editor tool is available. Returns false otherwise. |
Remarks
See ToolManager.RefreshAvailableTools for an example.