Ctrl+C,Ctrl+V not work

Ctrl+D works
Ctrl+C,Ctrl+V not work

system : windows 10 enterprise
unity version : 2020.1.2f1c1
language : chinese

Hi,
Could your try the following script in an empty project and see what Ctrl, C and D return in the console?

using UnityEngine;
using System;
using System.Linq;

public class Test : MonoBehaviour
{
    // test to make sure that your keyboard is recognized by Unity (for non English keyboards)
    private static readonly KeyCode[] KeyCodes = Enum.GetValues(typeof(KeyCode))
        .Cast<KeyCode>()
        .Where(k => ((int)k < (int)KeyCode.Mouse0))
        .ToArray();

    // Update is called once per frame
    private void Update()
    {
        if (Input.anyKeyDown)
        {
            for (int i = 0; i < KeyCodes.Length; i++)
            {
                KeyCode kc = KeyCodes[i];
                if (Input.GetKeyDown(kc))
                    Debug.Log($"Input detected: {kc.ToString()}");
            }
        }
    }
}

I just tried it, and no information was printed. Ctrl+C, Ctrl+D can be copied and pasted in the hierarchy window, but not in the project window.

Looks like you need to file a bug report then. :slight_smile:

The script needs to be tested in play mode. Did you try other keys when you tested the script to see what they returned in the console?

I don’t know why the message was not printed before, Now every key will print a message like
Input detected: C
UnityEngine.Debug:Log(Object)
Test:Update() (at Assets/Test.cs:22)
Is it normal that the asset window can not copy and past by Ctrl C+V, or is it a bug?

Take a look in Edit/Shortcuts… In “Main Menu”, make sure Ctrl+C and Ctrl+V are assigned. If they are not, try assigning them and test them; if they don’t work, file a bug report.

6354159--706638--Capture d’écran_2020-09-27_11-27-51.png