Version: 2021.3

SystemInfo.processorCount

切换到手册
public static int processorCount ;

描述

This has the same functionality as SystemInfo.processorCount and also mimics platform-specific behavior in the Unity Editor.