From d5842242239e5b99d469d9d0f452313813ad1fa1 Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Fri, 7 Feb 2020 11:10:58 +0700 Subject: [PATCH] layout sample scene --- .../bin/library/prefabs/camera_prefab.json | 3 +- samples/bin/library/scenes/sample_09.json | 59 +++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) diff --git a/samples/bin/library/prefabs/camera_prefab.json b/samples/bin/library/prefabs/camera_prefab.json index 35983ca9..b90781d2 100644 --- a/samples/bin/library/prefabs/camera_prefab.json +++ b/samples/bin/library/prefabs/camera_prefab.json @@ -4,7 +4,8 @@ "name" : "camera" }, "camera" : { - "background" : [1.0, 0.4, 0.0, 1.0] + "background" : [1.0, 0.4, 0.0, 1.0], + "mode" : "fixed_crop" }, "camera.input" : {}, "camera.gizmos" : {} diff --git a/samples/bin/library/scenes/sample_09.json b/samples/bin/library/scenes/sample_09.json index 75a15970..5fa5aeea 100644 --- a/samples/bin/library/scenes/sample_09.json +++ b/samples/bin/library/scenes/sample_09.json @@ -4,5 +4,64 @@ "prototype" : "../prefabs/background_prefab.json" },{ "prototype" : "../prefabs/camera_prefab.json" + },{ + "components" : { + "named" : { + "name" : "layout" + }, + "layout" : {} + }, + "children" : [{ + "components" : { + "named" : { + "name" : "layout_item" + }, + "layout_item" : { + "size" : [66,113] + } + }, + "children" : [{ + "prototype" : "../prefabs/ship_prefab.json", + "components" : { + "actor" : { + "translation" : [33,56.5] + } + } + }] + },{ + "components" : { + "named" : { + "name" : "layout_item" + }, + "layout_item" : { + "size" : [66,113] + } + }, + "children" : [{ + "prototype" : "../prefabs/ship_prefab.json", + "components" : { + "actor" : { + "translation" : [33,56.5] + } + } + }] + },{ + "components" : { + "named" : { + "name" : "layout_item" + }, + "layout_item" : { + "size" : [66,113] + } + }, + "children" : [{ + "prototype" : "../prefabs/ship_prefab.json", + "components" : { + "actor" : { + "translation" : [33,56.5] + } + } + }] + }] }] }