Skip to content

Commit fdea8ec

Browse files
committed
docs: 完善剪贴板操作类的XML文档注释
改进中文摘要的表述,补充英文说明与平台支持信息。 为方法添加详细的<remarks>和<returns>/<param>标签,提升API文档的完整性和可读性。
1 parent d75f462 commit fdea8ec

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

Runtime/BlankOperationClipboard.cs

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
#endif
55

66
/// <summary>
7-
/// 粘贴板的读写
7+
/// 粘贴板的读写操作工具类。
88
/// </summary>
9+
/// <remarks>
10+
/// Provides clipboard read and write operations across different platforms.
11+
/// Supports Editor, Standalone, WebGL (Douyin Mini Game), Android, and iOS platforms.
12+
/// </remarks>
913
public static class BlankOperationClipboard
1014
{
1115
#if UNITY_IOS
@@ -18,9 +22,12 @@ public static class BlankOperationClipboard
1822

1923

2024
/// <summary>
21-
/// 获取粘贴板的值
25+
/// 获取粘贴板的值
2226
/// </summary>
23-
/// <returns></returns>
27+
/// <remarks>
28+
/// Gets the current value from the system clipboard.
29+
/// </remarks>
30+
/// <returns>粘贴板中的文本内容;如果为空则返回空字符串 / The text content from clipboard; returns empty string if empty</returns>
2431
public static string GetValue()
2532
{
2633
#if UNITY_EDITOR || UNITY_STANDALONE
@@ -54,9 +61,12 @@ public static string GetValue()
5461
}
5562

5663
/// <summary>
57-
/// 设置粘贴板的值
64+
/// 设置粘贴板的值
5865
/// </summary>
59-
/// <param name="text"></param>
66+
/// <remarks>
67+
/// Sets the specified text to the system clipboard.
68+
/// </remarks>
69+
/// <param name="text">要设置到粘贴板的文本内容 / Text content to set to clipboard</param>
6070
public static void SetValue(string text)
6171
{
6272
#if UNITY_EDITOR || UNITY_STANDALONE

0 commit comments

Comments
 (0)