脚本/功能 【更新】ScriptableObject Database 1.5创建数据库工具

Unity插件信息
插件名称: ScriptableObject Database
插件官网: https://assetstore.unity.com/packages/tools/utilities/scriptableobject-database-140702
版本: 1.5
解压密码:
素材类型: 脚本/功能














Easily create database for ScriptableObjects in only a few seconds. Organize your ScriptableObject data into database files for convenience. No coding required just use the Database Type Creator to quickly and easily set up a database for any ScriptableObject type. Use custom inspectors and property drawers? No problem, the Data displayed uses Unitys built in inspector and automatically uses any custom Inspectors and drawers you have set up for the data.

Object Database Editor Window Features
-Switch between different Database Types
-Enable/Disable different Types when many different Database Types clutter your view.
-Select, Create, and Delete Databases and ScriptableObjects
-Create any Sub classes of a ScriptableObjects Type with 2 button clicks.
-Rearrange the order of assets in the list.
-View and modify any Serializable data the ScriptableObjects contain right in the editor window.
-Support for all custom inspectors and property drawers by default
-Drag and drop compatible Objects into the asset list for quickly adding an existing Object
-Import external objects into the database as a Copy, or keep the data external and store a reference
-Duplicate Objects and add them to the database

Database Type Creator Features
-Select where in the dependency chain to create a Database. The database will then be able to hold, and create all Types that inherit from that base type, ignoring abstract types.
-Name the database type for use in file and class naming. e.g. 'ItemAssetDatabase'
-Select locations for your Runtime, and Editor scripts that are created
-Once new Database Type is created, the Asset Database Editor Window will pick it up immediately

ScriptableObject Asset Database was created to fill a need I have for organization, and efficient workflows. I wanted to be able to create simple databases that could store any type of Unity Object I could create, and be able to create them in less than 30 seconds, including recompile time. It was to be minimalist, with the least amount of clutter that could effectively accomplish those 2 goals.

With that in mind I use no custom icon or texture data. The Code is compiled into 2 DLLs, one for Runtime, and one for the Editor. It also includes 2 EditorDefaultResource files that are used as templates for the runtime, and editor classes. The resulting classes and files created from these templates use 44 lines of code for any database you wish to create.

The base database classes are not just for ScriptableObjects, Easily override a few methods in the Databases generic class to allow a Prefab Database, or a custom database. If you know how to code, creating databases for any type of project data you can imagine should be trivial when extending the base Database classes.

Planned Features
-Move an existing ScriptableObject into the database, and update all references in the project
-Use Embedded Resources to store the template files inside dlls with



只需几秒钟,即可轻松为ScriptableObjects创建数据库。为了方便起见,将ScriptableObject数据组织到数据库文件中。无需编码,只需使用数据库类型创建器即可快速轻松地为任何ScriptableObject类型设置数据库。使用定制检查员和财产抽屉?没问题,显示的数据使用Unitys内置的检查器,并自动使用您为数据设置的任何自定义检查器和抽屉。

对象数据库编辑器窗口功能
-在不同数据库类型之间切换
-当许多不同的数据库类型使视图混乱时,启用/禁用不同的类型。
-选择、创建和删除数据库和脚本对象
-只需点击两次按钮,即可创建ScriptableObjects类型的任何子类。
-重新排列列表中资产的顺序。
-在编辑器窗口中查看和修改ScriptableObjects包含的任何可序列化数据。
-默认情况下支持所有自定义检查员和财产抽屉
-将兼容的对象拖放到资源列表中,以快速添加现有对象
-将外部对象作为副本导入数据库,或将数据保存在外部并存储引用
-复制对象并将其添加到数据库中

数据库类型创建者功能
-选择依赖关系链中创建数据库的位置。然后,数据库将能够保存并创建从该基类型继承的所有类型,忽略抽象类型。
-命名用于文件和类命名的数据库类型。例如“ItemAssetDatabase”
-为运行时和创建的编辑器脚本选择位置
-创建新的数据库类型后,资源数据库编辑器窗口将立即将其选中

ScriptableObject资产数据库的创建是为了满足我对组织和高效工作流程的需求。我希望能够创建简单的数据库,可以存储我可以创建的任何类型的Unity对象,并且能够在不到30秒的时间内创建它们,包括重新编译时间。它应该是极简主义的,用最少的杂乱来有效地实现这两个目标。

考虑到这一点,我不使用自定义图标或纹理数据。代码被编译成2个DLL,一个用于运行时,一个供编辑器。它还包括用作运行时模板的2个EditorDefaultResource文件和编辑器类。从这些模板创建的结果类和文件使用44行代码来创建您想要创建的任何数据库。

基础数据库类不仅适用于ScriptableObjects,还可以轻松重写Databases泛型类中的一些方法,以允许预制数据库或自定义数据库。如果你知道如何编码,那么在扩展基础数据库类时,为你能想象到的任何类型的项目数据创建数据库应该是轻而易举的。

计划的功能
-将现有的ScriptableObject移动到数据库中,并更新项目中的所有引用
-使用嵌入式资源将模板文件存储在dll中



作者 cg小白兔 发表于 昨天 15:56
您需要登录后才可以回帖 登录 | 立即注册
cg小白兔

关注0

粉丝0

发布8974

热门作品推荐
glow
【更新】Prefab World Builder 4.6
glow
【更新】ScriptableObject Database 1.5创
glow
【更新】Shiny SSR 2 - Screen Space Refle
glow
【更新】Forest Environment - Dynamic Nat
glow
【更新】Radiant Global Illumination 20.3
glow
【更新】A Pathfinding Project Pro 5.3.7
glow
【更新】Plasma Ball 1.2 复古科幻等离子体
glow
【更新】Quick Joystick And MoveLook Came
glow
【更新】UI Toolkit Visual Scripting - No
glow
【更新】UIFX - Glow Filter 1.8.4光晕滤镜