Unity3d插件:组件保存系统Component Save System

九艺圆明 2020-10-24 经验之谈 491

本文中文翻译由九艺圆明美术外包团队官网原创发布,转载请注明出处。

今天九艺圆明游戏美术外包公司的小伙伴给大家推荐Unity3d插件:组件保存系统Component Save System

游戏美术外包公司

九艺圆明机译:什么是组件保存系统?

英文官方原文:What is Component Save System?

九艺圆明机译:一个免费的存储系统,它是为了与当前的统一组件系统共存而开发的。

英文官方原文:A free save system that is developed to co-exist with the current component system of Unity.

九艺圆明机译:最新版本手册(V1.1)

英文官方原文:Manual for the latest version (V1.1)

九艺圆明机译:演示功能的WEBGL游戏演示示例

英文官方原文:WEBGL Game demo sample that demonstrates features

九艺圆明机译:相关信息:

英文官方原文:Still relevant information:

九艺圆明机译:关于它如何工作的博客文章。主要集中在前一个版本上。071.071版

英文官方原文:Blogpost on how it works. Mainly focused on the previous version. (V1.071)

九艺圆明机译:上一个免费版本的Github链接。(第1071节)

英文官方原文:Github link for the previous, free version. (V.1071)

游戏美术外包公司

九艺圆明机译:另一个统一的拯救系统?

英文官方原文:Another save system for Unity?

九艺圆明机译:此解决方案与其他解决方案的不同之处在于,您只需为每个组件(脚本)编写一个保存实现。这样做的好处是,每个具有名为“Saveable”的组件的对象将被唯一地保存。

英文官方原文:How this solution differs from others is that you only have to write a save implementation per component (script). This comes with the benefit that each object that has a component called "Saveable" will be saved uniquely.

九艺圆明机译:可以复制50个对象,这些对象使用实现ISaveable的相同组件。所有这些对象仍然可以单独保存。因为一个可保存的组件有一个全局唯一标识符,并且不允许重复,所以会生成一个新的ID。如果您希望能够轻松地保存多个npc的状态,这将非常有用。

英文官方原文:You could duplicate 50 objects that use the same components that implement ISaveable. And all these objects would still get saved individually. Since a Saveable Component has a global unique identifier, and duplicates are not allowed, so a new ID gets generated. This is useful in case you want to be able to easily save the state of multiple NPCS.

游戏美术外包公司

九艺圆明机译:它在实践中是如何工作的?

英文官方原文:How does it work in practice?

九艺圆明机译:您可以将一个名为“Saveable”的组件添加到要保存的游戏对象的根目录中。这是一个获取实现ISaveable的所有组件的组件。saveable组件响应SaveMaster发送的同步请求。

英文官方原文:You add a component called "Saveable" to the root of a GameObject which you want to save. This is a component that fetches all components that implement ISaveable. The saveable component responds to sync requests sent by the SaveMaster.

九艺圆明机译:当SaveGame被销毁时,SaveGame也会保存到SaveGame中,但是在SaveMaster决定实际保存之前,不会将任何内容写入磁盘。销毁对象在SaveGame对象上设置数据的好处是可以防止对象在保存操作期间被排除。例如,当你离开一个房间时,所有的东西都被设置好了,但还没有写入文件。如果您希望有特定的“保存点”,而不想考虑另一个房间中的对象是如何保存或加载的,那么这是非常好的。

英文官方原文:Saving to the SaveGame is also done by the Saveable when it gets destroyed, however nothing gets written to disk until the SaveMaster decides to actually save. The benefit of having destroyed objects set data on the SaveGame object is that it prevents objects from being excluded during a save action. So for instance when you exit a room, everything gets set but not written yet to file. This is great if you want to have specific "Save Points" and you don't want to think about how the objects in the other room get saved or loaded.

九艺圆明机译:特征

英文官方原文:Features

九艺圆明机译:*轻松保存同一对象的多个实例(预置)。例如,新的敌人在一个级别。

英文官方原文:* Easily save multiple instances (prefabs) of the same object. For instance, new enemies in a level.

九艺圆明机译:*数据以JSON格式存储在一个平面结构中,dictionary用于快速键检索

英文官方原文:* Data is stored as JSON in a flat structure, dictionary is used for fast key retrieval

九艺圆明机译:*包括源代码

英文官方原文:* Source code is included

九艺圆明机译:*很容易编写一个实现来保存组件

英文官方原文:* Easy to write a implementation to save your component

九艺圆明机译:*存储Float、Int、String之类的playerprefs,但是使用SaveMaster

英文官方原文:* Store Float, Int, String like playerprefs, but then instead by using the SaveMaster

九艺圆明机译:*可保存的简易预制件。(目前仅提供资源文件夹,Adressables即将实现)

英文官方原文:* Easily prefabs that are saveable. (Resources folder only for now, Adressables implementation coming soon)

九艺圆明机译:(新的!)*写入二进制和SQLite(Beta),并在存储类型之间转换

英文官方原文:(New!) * Writing to Binary and SQLite (Beta), and converting between save types

九艺圆明机译:(新的!)*将屏幕截图保存到元数据,将屏幕截图加载到原始图像

英文官方原文:(New!) * Saving screenshot to metadata, loading screenshot to raw image

九艺圆明机译:(新的!)*保存文件的AES加密

英文官方原文:(New!) * AES encryption of save files

九艺圆明机译:(新的!)*保存和加载上次使用的场景

英文官方原文:(New!) * Saving and loading of last used scenes

九艺圆明机译:(新的!)*游戏模板和主菜单和暂停屏幕菜单模板。

英文官方原文:(New!) * Game template and Main menu & Pause screen menu templates.

九艺圆明机译:(新的!)*使用scriptableobject而不是字符串字段来设置ID

英文官方原文:(New!) * Use scriptableobject instead of a string field to set ID's

九艺圆明机译:(新的!)*临时插槽加载,用活动插槽覆盖插槽

英文官方原文:(New!) * Temporary slot loading, overwrite slot with active slot

九艺圆明机译:(新的!)*将数据保存到自定义元数据文件

英文官方原文:(New!) * Save data to a custom metadata file

九艺圆明机译:在以下平台上测试

英文官方原文:Tested on the following platforms

九艺圆明机译:Windows/Linux系统

英文官方原文:Windows / Linux

九艺圆明机译:安卓

英文官方原文:Android

九艺圆明机译:网络GL

英文官方原文:WebGL

九艺圆明机译:目前还没有得到证实,但在大多数平台上还没有得到证实。

英文官方原文:Most likely works on more platforms, but not confirmed yet.

九艺圆明机译:如果你在另一个平台上工作遇到了问题,

英文官方原文:If you work on a different platform and run into issues,

九艺圆明机译:联系人info@low-scope.com为了得到支持。

英文官方原文:contact info@low-scope.com to get support.

官方购买地址:https://assetstore.unity.com/packages/tools/utilities/component-save-system-159191

北京九艺圆明数字科技有限公司,在游戏行业,在网页游戏平台,九艺圆明是昆仑万维最可靠的合作伙伴之一,制作的《猛将无双》网页游戏,早在二零一二年就获得国内外无数大奖。近年来,九艺圆明积极拓展业务体系,由于Unity3d在手游领域的流行,九艺圆明自主研发多类游戏美术制作插件,在手游与PC 平台,九艺圆明是大宇软星忠实的合作伙伴,参与制作《仙剑奇侠传》系列,《大富翁》系列。让九艺圆明引以为傲的是,我们与腾讯,网易,卡普空,蓝港等一线厂商保持着默契并良好的合作关系。服务逾十年来,参与研发作品超五百部。多部作品广受内人士惊艳好评。

本站部分文章以视觉设计欣赏的角度转载自互联网,如侵犯到您的权利请来信告之,本站将在24小时内删除转载。

文章关键词:unity3d源码 unity3d技术美术外包 九艺圆明 游戏美术 外包公司
上一篇:Unity3d赛车源码通用车辆控制器Universal Vehicle Con
下一篇:Unity3d插件:生成报表工具Build Report Tool

更多文章

  • 游戏力驱动儿童视力健康新时代

    游戏力驱动儿童视力健康新时代

    如今我们的小朋友们越来越离不开电子产品,随之而来的是近视率的逐年上升,也让儿童近视成为了全球性公共卫生问题。正是在这种背景下,游戏视力保护软件应运而生。那么,这种电子游戏软件真的既能带给孩子们欢乐,又能帮助他们改善视力吗?它究竟是儿童视力治疗的变革还是一场冠冕堂皇的骗局呢?
  • 游戏化营销:通过游戏体验吸引用户接受产品

    游戏化营销:通过游戏体验吸引用户接受产品

    在这个充满竞争的网络产品时代,如何让用户对你的网络产品产生兴趣并积极加入其中?答案可能就在游戏之中。
  • 二次元游戏的前世今生与破局之战

    二次元游戏的前世今生与破局之战

    今年二季度,二次元厂商大量裁员的消息刷屏了整个游戏圈,在很多人笃定二次元即将跌落神坛之时,却有不少厂商逆流而上,纷纷杀入战场,将原本已巨浪滔天的二次元红海带起了新一轮飓风。
  • 揭开广告游戏赚钱的秘密

    揭开广告游戏赚钱的秘密

    你是否玩过一些免费的游戏,一边享受游戏的乐趣,一边又要忍受广告的烦扰?今天就让九艺圆明的创作团队跟大家一起探讨这个有意思的问题,广告游戏到底是如何赚钱?

扫一扫添加微信