Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryGetOverlay(string, out Overlay)

Get an Overlay with matching ID from an EditorWindow canvas.
Read time 1 minuteLast updated 6 days ago

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.