Version: 2023.2
public bool TryGetOverlay (string id, out Overlays.Overlay match);

参数

id ID of the overlay to retrieve.
match Contains the overlay with matching id, or null if no matching overlay was found.

返回

bool Returns true if the overlay was found, false otherwise.

描述

Get an Overlay with matching ID from an EditorWindow canvas.