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…