从资源里载入图象而不丢失调色板 procedure loadgraphic(naam:string);var { I've moved these in here, so they exist only during the lifetime of the procedure. } HResInfo: THandle; BMF: TBitmapFileHeader; MemHandle: THandle; Stream: TMemoryStream; ResPtr: PByte…
using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// LoadAssets打开某资源文件并加载其中的所有Prefab到场景中 /// </summary> public class LoadAssets : MonoBehaviour { [HideInInspector] public string address;//资源所在文件夹路径 p…