文档

Unity Engine

Unity Engine

TryGetOverlay(string, out Overlay)

Get an Overlay with matching ID from an EditorWindow canvas.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor

TryGetOverlay(string, Overlay)

public bool TryGetOverlay(string id, out Overlay match)

Parameters

ID of the overlay to retrieve.

match

Contains the overlay with matching id, or null if no matching overlay was found.

Returns

Type

Description

boolReturns true if the overlay was found, false otherwise.