File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
- using UniDebugMenu . Example ;
2
- using System ;
1
+ using System ;
3
2
using System . Collections . Generic ;
4
3
using System . Linq ;
4
+ using UniDebugMenu . Example ;
5
+ using UnityEngine ;
5
6
6
7
namespace UniDebugMenu
7
8
{
@@ -20,12 +21,18 @@ public class SimpleTextListDataCreator : ListCreatorBase<ActionData>
20
21
// 変数
21
22
//==============================================================================
22
23
private IList < ActionData > m_list ;
24
+ private string m_text ;
23
25
24
26
//==============================================================================
25
27
// プロパティ
26
28
//==============================================================================
27
29
public override int Count => m_list . Count ;
28
30
31
+ public override ActionData [ ] OptionActionList => new [ ]
32
+ {
33
+ new ActionData ( "コピー" , ( ) => GUIUtility . systemCopyBuffer = m_text ) ,
34
+ } ;
35
+
29
36
//==============================================================================
30
37
// 関数
31
38
//==============================================================================
@@ -34,6 +41,8 @@ public class SimpleTextListDataCreator : ListCreatorBase<ActionData>
34
41
/// </summary>
35
42
public SimpleTextListDataCreator ( string text )
36
43
{
44
+ m_text = text ;
45
+
37
46
if ( string . IsNullOrWhiteSpace ( text ) )
38
47
{
39
48
m_sourceList = new ActionData [ 0 ] ;
You can’t perform that action at this time.
0 commit comments