meta data for this page
📚 实验工坊编辑器
实验工坊是内置在 沙盘引擎 本体的编辑器,主要用于修改和创作自定义数据。
编辑器可调试载具[Vehicle]
、道具[Prop]
、模型[Model]
等对象数据,通过可视化的方式实时更新。
📒 使用指南
编辑器不会保存任何数据,仅提供实时数据更新和编辑功能,用户可在左侧编辑框输入(粘贴)受支持的数据文本,并且点击空白处执行更新。
不同游戏对象更新后可能有不同的效果,可以尝试点击空白处切换某些属性状态(例如:载具切换灯光)。
注意:数据的合法化以及错误信息会显示在编辑框标题右侧,如果存在错误信息,则鼠标悬停时会显示具体报错内容。
📒 数据使用
沙盘引擎 原生支持模组导入自定义对象(例如:新建载具、道具、模型等),结合此编辑器可以进一步调整导入数据。
数据调试完毕后,可以按照模组自定义对象的要求导入至模组中,随后重新载入场景(刷新模组资源)即可使用新的导入对象。
📒 示例数据
载具数据(Json):Police[20]
{ "Name": "Police", "Model": 220, "Type": 1, "Scale": 0.7, "Collision": { "x": 2.6, "y": 1.7, "z": 7.25 }, "CollisionCenter": { "x": 0.0, "y": 1.35, "z": 0.1 }, "Handling": { "Mass": 1400.0, "CenterOfMass": { "x": 0.0, "y": -0.3, "z": 0.0 }, "MaxSpeed": 38.0, "MaxHealth": 1200, "DamageMultiple": 1.0, "Immunnity": 0, "Acceleration": 80.0, "Deceleration": 90.0, "Sensitivity": 3.0, "SteeringLock": 30.0 }, "Extend": { "CustomColors": [ { "r": 50, "g": 60, "b": 100 } ] }, "Audios": { "Collision": 150, "Engine": 255, "Wake": 203, "Brake": 430, "Horn": 350, "HornPitch": 1.0, "Door": 420, "Alarm": 400 }, "Seats": [ { "Visible": false, "Pos": { "x": -0.5, "y": 0.5, "z": 0.5 } }, { "Visible": false, "Pos": { "x": 0.5, "y": 0.5, "z": 0.5 } }, { "Visible": false, "Pos": { "x": -0.5, "y": 0.5, "z": -1 } }, { "Visible": false, "Pos": { "x": 0.5, "y": 0.5, "z": -1 } } ], "Wheels": [ { "Model": 550, "Steering": true, "Pos": { "x": -1.2, "y": 0.3, "z": 2.25 }, "Angle": { "x": 0.0, "y": 180.0, "z": 0.0 }, "Scale": 1.2 }, { "Model": 550, "Steering": true, "Pos": { "x": 1.2, "y": 0.3, "z": 2.25 }, "Angle": { "x": 0.0, "y": 0.0, "z": 0.0 }, "Scale": 1.2 }, { "Model": 550, "Steering": false, "Pos": { "x": -1.2, "y": 0.3, "z": -1.85 }, "Angle": { "x": 0.0, "y": 180.0, "z": 0.0 }, "Scale": 1.2 }, { "Model": 550, "Steering": false, "Pos": { "x": 1.2, "y": 0.3, "z": -1.85 }, "Angle": { "x": 0.0, "y": 0.0, "z": 0.0 }, "Scale": 1.2 } ], "Additions": [ { "Type": 1, "Pos": { "x": 0, "y": 1.0, "z": 3.5 }, "Angle": { "x": 12.0, "y": 0.0, "z": 0.0 }, "Color": { "r": 255, "g": 255, "b": 255 }, "Switch": true, "Range": 100, "Intensity": 1.0 }, { "Type": 0, "Pos": { "x": 0, "y": 1.0, "z": -3.3 }, "Color": { "r": 255, "g": 0, "b": 0 }, "Range": 8, "Intensity": 1.0 }, { "Type": 2, "Enum": 7, "Pos": { "x": 0, "y": 1, "z": 2.4 }, "Color": { "r": 150, "g": 150, "b": 150 }, "Intensity": 2.0, "Range": 1, "Scale": 1 }, { "Type": 3, "Enum": 7, "Pos": { "x": 0.4, "y": 0.5, "z": -3.8 }, "Color": { "r": 180, "g": 180, "b": 180 }, "Intensity": 3.0, "Range": 0.5, "Scale": 1.5 }, { "Type": 5, "Enum": 1, "Pos": { "x": 0, "y": 1.0, "z": -4 }, "Color": { "r": 255, "g": 0, "b": 0 }, "Range": 3, "Intensity": 1.0 }, { "Type": 4, "Enum": 2, "Pos": { "x": 0.8, "y": 2.3, "z": -0.2 }, "Color": { "r": 255, "g": 0, "b": 0 }, "Range": 18, "Intensity": 1.0 }, { "Type": 4, "Enum": 1, "Pos": { "x": -0.8, "y": 2.3, "z": -0.2 }, "Color": { "r": 0, "g": 192, "b": 255 }, "Range": 18, "Intensity": 1.0 } ] }