private void PingLineWhenLoaded() { if (textEditor.CanEdit()) { EditorApplication.update -= PingLineWhenLoaded; textEditor.PingLine(pingLineWhenLoaded); } }