Class ScyllaEditorClipboard
Reads and writes the system clipboard from editor code.
Inherited Members
Namespace: Scylla.Core.Editor
Assembly: ScyllaCore.Editor.dll
Syntax
public static class ScyllaEditorClipboard
Remarks
A thin wrapper over UnityEngine.GUIUtility.systemCopyBuffer, which is the correct
API but an awkward one to call: it is a property on an IMGUI type, it is easy to
mistake for the editor-local copy buffer, and it happily stores null. Naming
the operation makes the call sites read like what they do.
Editor-only, main thread only.
Properties
HasText
Gets a value indicating whether the clipboard currently holds any text.
Declaration
public static bool HasText { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
Copy(string)
Places text on the system clipboard.
Declaration
public static void Copy(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| string | text | The text to copy. |
Paste()
Reads the system clipboard.
Declaration
public static string Paste()
Returns
| Type | Description |
|---|---|
| string | The clipboard text, or an empty string when it holds none. |