public void Write(string path) { FileStream fs = new FileStream(path, FileMode.Create); BinaryWriter bw = new BinaryWriter(fs); m_ActionObject.Write(bw); bw.Close(); fs.Close(); AssetDatabase.Refresh(); }