本文章包含屏幕坐标RGB采集器完整代码
前言
编写的脚本有时候需要获取屏幕坐标的RGB值,以便判断屏幕显示内容是否刷新,所以就需要一段获取屏幕RGB值的代码。
提示:以下是本篇文章正文内容,下面案例可供参考
一、完整代码
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.Runtime.InteropServices;
using System;
using Color = System.Drawing.Color;
public class ColorManager : MonoBehaviour
{