IsAvailable()
Checks whether the custom editor tool is available based on the state of the editor. Unavailable tools are displayed as disabled in the Scene view's Tools overlay.
읽는 시간 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
Refer toToolManager.RefreshAvailableTools for an example.