[Scriptable Object] ScriptableObject 是一个可继承的Class,适用于存储大数据的情形. Consider for example that you have made a prefab with a script which has an array of a million integers. The array occupies 4MB of memory and is owned by the prefab. Each time you instan
读取txt的脚本: public void ReadFileTX(){ var str = File.ReadAllText(Application.streamingAssetsPath + "/position.txt"); Parse(str); foreach(var n in beats_positions){ Debug.Log(n); } } 这个时候对得到的点处理为vector3: public string Parse(string str){ string[] st