关键代码:LightmapSettings.lightmaps lightmapDatas;
LightmapData中操作三张图:lightmapColor,lightmapDir,以及一张ShadowMap
这里只操作前两张:
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;public cl…
Most classes should not directly handle resources, but instead, use members that perform resource handling for them:
For memory, it can be std::unique_ptr, std::shared_ptr, std::vector…For files, it can be std::ofstream, std::ifstream……
Classes …