If your save function looks like this you’re in luck! BinaryFormatter bf = new BinaryFormatter(); FileStream file = File.Create(savePath); bf.Serialize(file, gameData); file.Close(); Currently you can view and edit Arrays, Lists, Dictionaries, classes, enums, and primative types. Values...
BinaryFormatter bf = new BinaryFormatter(); FileStream file = File.Create(savePath); bf.Serialize(file, gameData); file.Close(); Currently you can view and edit Arrays, Lists, Dictionaries, classes, enums, and primative types. Values can be reset to their default type value with the x con...
场景主相机的设置 4. Game 游戏预览 游戏最终展现给玩家的一面,即显示游戏的主摄像机看到的内容 标题栏主要是控制Game视图的显示,并不影响最终发布的游戏的结果。 模拟器 Display1 摄像机可以设置当前的display层 Free Aspect 下拉列表,设置分辨率,任意显示比例 Scale 用于调整Game视图的大小 Maximize On Play 游戏原...
我每周分享游戏开发幕后故事和资源,记得三连,欢迎转发,感谢关注!:) Unity Fantasy RPG资源包!9月16号截止(更新:这个包延长至9月30号截止) affiliate: https://www.humblebundle.com/software/unity-fantasy-games-dev-assets-software?partner=leetgamedev...
ref=leetgame 10% Off优惠码:LEETGAMEDEV10 ➤【Humble Bundle】- https://www.humblebundle.com/?partner=leetgamedev ➤【Unity商店】- https://assetstore.unity.com/?aid=1100l8yj2 ➤【Gamedevmarket】- https://www.gamedevmarket.net/?ally=xv5378hB ➤【Synty Store】https://syntystore....
[CreateAssetMenu(fileName = "GameDataAsset", menuName = "Creat GameData Asset")] public class LevelData : ScriptableObject { [Header("关卡字典")] [HideInInspector] [SerializeField] public List<InsideData> preinstallLevels; /// /// 找数据...
在Editor文件夹中UnityGameFramework.Editor需要引用上面两个程序集。 至此,不出意外的话编辑器下方的报错全部消失,完成了替换源码的操作。 三、组件的获取 我们参考StarForce的文件目录结构 在GameMain/Scripts/Base中创建(Copy)GameEntry.cs和GameEntry.Builtin.cs,GameEntry.Custom.cs可以先不用管,这个是自定义组件...
public void SetGameSaveValue(int id, string key, byte[] value) { SqliteCommand command = connection.CreateCommand(); command.CommandText = string.Format("update basic set {1} = @value where id == {0}", id, key); command.Parameters.Add("value", DbType.Binary).Value = value; ...
● 当单击General(综合设置)选项,会进入综合设置界面,如图2-33所示,里面是在整体上对Unity集成开发环境进行一些相关的设置,分别是Auto Refresh(自动更新)、Always Show Project Wizard(总是显示项目向导)、Compress Assets On Import(压缩资源导入)、Editor Analytics (编辑器分析)、Verify Saving Assets(保存验证资源)...
}internalstaticvoidClearSave(SaveGameData saveInfo) { m_saveInfo.Remove(saveInfo);stringfile=Path.GetFileName(saveInfo.path);stringpath = rootPath +"/"+file;if(File.Exists(path)) { File.Delete(path); }#ifUNITY_EDITORpath= rootPath +"/"+ file +".meta";if(File.Exists(path)) ...