private IEnumerator InvokeOnPaste() { //Wait until the pasted objects are rendered yield return(new WaitForEndOfFrame()); //Notify listeners that the copied objects were pasted OnPaste?.Invoke(ObjectSelection.Instance.GetSelection()); }
new public bool Paste() { var paste = base.Paste(); OnPaste?.Invoke(GUIUtility.systemCopyBuffer); //Debug.Log(GUIUtility.systemCopyBuffer + " Paste"); return(paste); }
protected override void WndProc(ref Message msg) { if (msg.Msg == WM_PASTE) { var e = new PasteEventArgs(); OnPaste?.Invoke(this, e); if (e.Cancel) { return; } } base.WndProc(ref msg); }
private void PasteClick() => OnPaste?.Invoke();
public void Paste(string text) => OnPaste?.Invoke(this, text);
private void PasteClick(UIComponent component, UIMouseEventParameter eventParam) => OnPaste?.Invoke();
private void btnPaste_Click(object sender, EventArgs e) { OnPaste?.Invoke(this, e); }