meta data for this page
📚 实验工坊编辑器
实验工坊是内置在《沙盘引擎》本体内的编辑器功能,同时也是一个游戏场景(Scene)。
使用此编辑器可以用来测试《沙盘引擎》有关载具(Vehicle)、道具(Prop)、模型(Model)等对象的数据,通过可视化的方式实时编辑。
实验工坊不会被其他模组所修改(如界面和功能等),它是一个原生附带的官方功能。
同时也不只为“某个模组”提供测试,任何模组都可通过【主菜单右下角】进入实验工坊。
📒 使用指南
此编辑器不保存任何数据,仅提供实时数据同步和编辑功能,用户可在左侧编辑框内输入(粘贴)受支持的数据文本,并且在每次点击UI空白处后自动更新。
不同游戏对象更新后可能有不同的效果,可以尝试点击场景空白处切换某些属性状态(例如:载具可开关灯光)。
注意:数据的合法化以及错误信息会显示在“数据实时编辑器”的标题右侧,如果存在错误信息,则鼠标悬停时会显示具体报错内容。
📒 示例数据
载具数据(Json):Police[20]
{ "Name": "Police", "Model": 220, "Type": 1, "Scale": 0.8, "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": 280.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 }, "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 } ] }