unity版本为2021.8 预制体不能携带光照贴图信息,只能我们自己准备了 多方查找加自己摸索终于找到了适合新版本的解决方案,直接贴代码
将这个脚本挂到预制体的最上级
using System.Collections;
using System.Collections.Generic;
using UnityEditor;
…
precisiontimer
安装扩展包 添加引用 完整代码
using PrecisionTiming;using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
us…