pull/2/head
jaysunxiao 2021-10-07 13:49:09 +08:00
parent 4d44f98f21
commit e7a5fb5156
40 changed files with 889 additions and 0 deletions

View File

@ -1,6 +1,29 @@
# camera
![Image text](image/camera1.png)
![Image text](image/camera2.png)
![Image text](image/camera3.png)
![Image text](image/camera4.png)
![Image text](image/camera5.png)
![Image text](image/camera6.png)
# viewport(视口,可视化窗口)
- root就是根节点的viewport
![Image text](image/viewport1.png)
![Image text](image/viewport2.png)
![Image text](image/viewport3.png)
![Image text](image/viewport4.png)
![Image text](image/viewport5.png)
![Image text](image/viewport6.png)
![Image text](image/viewport7.png)
![Image text](image/viewport8.png)
![Image text](image/viewport9.png)
![Image text](image/viewport10.png)
![Image text](image/viewport11.png)
# canvas layer
- 它是一个节点, 为所有子代和孙代添加一个单独的2D渲染层.Viewport的子节点默认在图层 "0 " 处绘制, 而CanvasLayer将在任何数字层处绘制.
- 数字较大的图层将绘制在数字较小的图层之上.CanvasLayers也有自己的变换, 不依赖于其他层的变换. 这使得当我们对游戏世界的观察发生变化时,UI可以固定在屏幕空间中.
![Image text](image/canvaslayers.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/canvaslayers.png-74d5cfd5f0971dd06d4bebbecb1192df.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_camera/image/canvaslayers.png"
dest_files=[ "res://.import/canvaslayers.png-74d5cfd5f0971dd06d4bebbecb1192df.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport1.png-3695208b412824287d5782e72c830540.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_camera/image/viewport1.png"
dest_files=[ "res://.import/viewport1.png-3695208b412824287d5782e72c830540.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport10.png-5d19078ce5f7a81a3f9441a0f24f9627.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_camera/image/viewport10.png"
dest_files=[ "res://.import/viewport10.png-5d19078ce5f7a81a3f9441a0f24f9627.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport11.png-49c34f067db449d6d361b85bed4577d6.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_camera/image/viewport11.png"
dest_files=[ "res://.import/viewport11.png-49c34f067db449d6d361b85bed4577d6.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport2.png-f6c9974766f9212697348273936e3a9e.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_camera/image/viewport2.png"
dest_files=[ "res://.import/viewport2.png-f6c9974766f9212697348273936e3a9e.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport3.png-ab73905cd1f8e50dcafbc07f68bb7e29.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_camera/image/viewport3.png"
dest_files=[ "res://.import/viewport3.png-ab73905cd1f8e50dcafbc07f68bb7e29.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport4.png-cfa3982b37b69b519cfd84d7fa2f28de.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_camera/image/viewport4.png"
dest_files=[ "res://.import/viewport4.png-cfa3982b37b69b519cfd84d7fa2f28de.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport5.png-c6d38332a54784c90267212faf71ce3a.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_camera/image/viewport5.png"
dest_files=[ "res://.import/viewport5.png-c6d38332a54784c90267212faf71ce3a.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport6.png-b03b6d5926778cef31f4809b939681ab.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_camera/image/viewport6.png"
dest_files=[ "res://.import/viewport6.png-b03b6d5926778cef31f4809b939681ab.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport7.png-de0248d21b4efb61417bd60bdb0c41d3.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_camera/image/viewport7.png"
dest_files=[ "res://.import/viewport7.png-de0248d21b4efb61417bd60bdb0c41d3.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport8.png-cedcfc816b6e093adad0fc6f983c6a27.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_camera/image/viewport8.png"
dest_files=[ "res://.import/viewport8.png-cedcfc816b6e093adad0fc6f983c6a27.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport9.png-8d0e6342ecc800abe9c3ec63869b061c.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_camera/image/viewport9.png"
dest_files=[ "res://.import/viewport9.png-8d0e6342ecc800abe9c3ec63869b061c.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport1.png-2ada517f8006ce451b1309721c8897ae.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/viewport1.png"
dest_files=[ "res://.import/viewport1.png-2ada517f8006ce451b1309721c8897ae.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport10.png-24cf0b2ab13f39f78c9c3a0a1d6f5bcd.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/viewport10.png"
dest_files=[ "res://.import/viewport10.png-24cf0b2ab13f39f78c9c3a0a1d6f5bcd.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport11.png-dfba73251f55e8c5d59232573944f692.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/viewport11.png"
dest_files=[ "res://.import/viewport11.png-dfba73251f55e8c5d59232573944f692.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport2.png-1d943d7f5c24ab4e99c366c03d9f6fe6.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/viewport2.png"
dest_files=[ "res://.import/viewport2.png-1d943d7f5c24ab4e99c366c03d9f6fe6.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport3.png-734f55dc82cb802d6dfe631a520b9a5d.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/viewport3.png"
dest_files=[ "res://.import/viewport3.png-734f55dc82cb802d6dfe631a520b9a5d.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport4.png-793038a9881e92975602c6e8f009c1da.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/viewport4.png"
dest_files=[ "res://.import/viewport4.png-793038a9881e92975602c6e8f009c1da.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport5.png-209a34e806cc86df0b59a2c59ac44ee8.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/viewport5.png"
dest_files=[ "res://.import/viewport5.png-209a34e806cc86df0b59a2c59ac44ee8.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport6.png-8e5f250bab17c6959fafe5fbf685d527.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/viewport6.png"
dest_files=[ "res://.import/viewport6.png-8e5f250bab17c6959fafe5fbf685d527.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport7.png-aea8ac19413279de1f8e0b54de68447a.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/viewport7.png"
dest_files=[ "res://.import/viewport7.png-aea8ac19413279de1f8e0b54de68447a.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport8.png-aae2778e89c12eaf5a5109f83547bd78.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/viewport8.png"
dest_files=[ "res://.import/viewport8.png-aae2778e89c12eaf5a5109f83547bd78.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/viewport9.png-1e42fb4fb94a46e7f1aeaa2948895441.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo_gui/image/viewport9.png"
dest_files=[ "res://.import/viewport9.png-1e42fb4fb94a46e7f1aeaa2948895441.stex" ]
[params]
compress/mode=0
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/filter=true
flags/mipmaps=false
flags/anisotropic=false
flags/srgb=2
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
stream=false
size_limit=0
detect_3d=true
svg/scale=1.0

View File

@ -0,0 +1,14 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://scene/demo_camera/move_camera.tscn" type="PackedScene" id=1]
[ext_resource path="res://scene/demo_camera/mini_viewport.tscn" type="PackedScene" id=2]
[node name="Node2D" type="Node2D"]
[node name="Node2D" parent="." instance=ExtResource( 1 )]
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="Control" parent="CanvasLayer" instance=ExtResource( 2 )]
margin_right = 0.0
margin_bottom = 0.0

View File

@ -0,0 +1,30 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://scene/demo_camera/move_camera.tscn" type="PackedScene" id=1]
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_right = -1024.0
margin_bottom = -600.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ViewportContainer" type="ViewportContainer" parent="."]
margin_left = 773.127
margin_top = 444.248
margin_right = 1023.13
margin_bottom = 594.248
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Viewport" type="Viewport" parent="ViewportContainer"]
size = Vector2( 250, 150 )
handle_input_locally = false
render_target_update_mode = 3
[node name="Camera2D" type="Camera2D" parent="ViewportContainer/Viewport"]
[node name="Node2D" parent="ViewportContainer/Viewport" instance=ExtResource( 1 )]

View File

@ -0,0 +1,38 @@
[gd_scene load_steps=3 format=2]
[ext_resource path="res://script/demo_camera/player.gd" type="Script" id=1]
[ext_resource path="res://icon.png" type="Texture" id=2]
[node name="Node2D" type="Node2D"]
[node name="icon" type="Sprite" parent="."]
position = Vector2( 73.0152, 64.7613 )
texture = ExtResource( 2 )
[node name="Control" type="Control" parent="."]
margin_left = 1.0
margin_right = 1024.0
margin_bottom = 601.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ViewportContainer" type="ViewportContainer" parent="Control"]
modulate = Color( 0.0352941, 0.894118, 0.65098, 1 )
margin_left = 770.879
margin_top = 437.506
margin_right = 1020.88
margin_bottom = 587.506
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Viewport" type="Viewport" parent="Control/ViewportContainer"]
size = Vector2( 250, 150 )
handle_input_locally = false
render_target_update_mode = 3
[node name="Sprite" type="Sprite" parent="Control/ViewportContainer/Viewport"]
position = Vector2( 100, 100 )
texture = ExtResource( 2 )
script = ExtResource( 1 )

View File

@ -9,3 +9,5 @@ script = ExtResource( 1 )
[node name="icon" type="Sprite" parent="."]
position = Vector2( 958.772, 540.059 )
texture = ExtResource( 2 )
[node name="Node2D" type="Node2D" parent="."]