pull/2/head
jaysunxiao 2021-11-01 17:53:51 +08:00
parent d070d1f479
commit 1e65c8ad1c
11 changed files with 88 additions and 14 deletions

View File

@ -0,0 +1,39 @@
# godot界面介绍
![Image text](image/godot-editor.PNG)
### 侧面分栏Dock
- 点击侧面分栏的右上角可以调整分栏的位置
- 左侧面分栏具体包括:
1. 文件系统FileSystem显示了当前项目中所有的资源文件
2. 导入Import显示了文件系统分栏中所选资源文件的导入设置。
3. 场景Scene按照层级结构显示当前场景中的所有节点。
- 右侧面分栏具体包括:
1. 属性Inspector显示了场景分栏中所选节点的属性。
2. 节点Node显示了与当前场景分栏中所选节点对应的一些“信息”。
- 中间面板具体包括:
- 主工作区Workspace
- 2D当在场景分栏中所选节点为2D类型时会自动进入此工作区。
- 3D当在场景分栏中所选节点为3D类型时会自动进入此工作区。
- 脚本Script此工作区可以对当前项目中的脚本进行编辑。
- 资源库AssetLib可以搜索并浏览网站上的资源
- 底部面板Bottom Panel
- 隐藏
- 与Unity和UE4不同的是Godot这种布局关系当前是相对固定的即它不能随意调整任意一个面板的位置或脱离成独立的窗口。虽然这看似是一个缺点不过从某种程度上讲也让引擎变得更简单了。
# godot的快捷键和界面基础操作
- Q选择v移动锚点shift + v 拖拽锚点
- W移动
- R旋转
- S缩放

View File

@ -28,13 +28,13 @@
- godot和ue对比
- 自主可控(避免被“卡脖子”)从开源软件的角度分析godot是游戏引擎界的Linuxue和unity算是Windows
- ue虽然开源源代码但是代码量太大历史包袱太重不适合深入研究底层代码的人
![Image text](engine-source.PNG)
![Image text](image/engine-source.PNG)
- godot的作者尽最大努力的减少第三方库的依赖最终使其代码非常精简适合学习
- 源代码开源不收费unity和ue都是要收费的ue超过100万美元触发5%的分成费用
![Image text](apache-license.png)
![Image text](gd-home.JPG)
![Image text](image/apache-license.png)
![Image text](image/gd-home.JPG)
- 使用godot你既可以用GDScript去编写代码也可以用C++去编写代码,还可以去改底层引擎代码

View File

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="StreamTexture"
path="res://.import/apache-license.png-833c82965906632987b8a574a8271ab7.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo01_hello/image/apache-license.png"
dest_files=[ "res://.import/apache-license.png-833c82965906632987b8a574a8271ab7.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

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -2,15 +2,15 @@
importer="texture"
type="StreamTexture"
path="res://.import/engine-source.PNG-6224446f4b0c318ef08a9533a9012997.stex"
path="res://.import/engine-source.PNG-f92c0641b2021339fd796565468ae074.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo01_hello/engine-source.PNG"
dest_files=[ "res://.import/engine-source.PNG-6224446f4b0c318ef08a9533a9012997.stex" ]
source_file="res://doc/demo01_hello/image/engine-source.PNG"
dest_files=[ "res://.import/engine-source.PNG-f92c0641b2021339fd796565468ae074.stex" ]
[params]

View File

Before

Width:  |  Height:  |  Size: 498 KiB

After

Width:  |  Height:  |  Size: 498 KiB

View File

@ -2,15 +2,15 @@
importer="texture"
type="StreamTexture"
path="res://.import/gd-home.JPG-3866ba9615d150fc9f82a3f7e19e041e.stex"
path="res://.import/gd-home.JPG-f25736bdeff8c578ae8bf5e8dde647c8.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo01_hello/gd-home.JPG"
dest_files=[ "res://.import/gd-home.JPG-3866ba9615d150fc9f82a3f7e19e041e.stex" ]
source_file="res://doc/demo01_hello/image/gd-home.JPG"
dest_files=[ "res://.import/gd-home.JPG-f25736bdeff8c578ae8bf5e8dde647c8.stex" ]
[params]

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

View File

@ -2,15 +2,15 @@
importer="texture"
type="StreamTexture"
path="res://.import/apache-license.png-599073122cee1d1b6911d29651e28109.stex"
path="res://.import/godot-editor.PNG-b03f8dad21107b1a527907551134d978.stex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://doc/demo01_hello/apache-license.png"
dest_files=[ "res://.import/apache-license.png-599073122cee1d1b6911d29651e28109.stex" ]
source_file="res://doc/demo01_hello/image/godot-editor.PNG"
dest_files=[ "res://.import/godot-editor.PNG-b03f8dad21107b1a527907551134d978.stex" ]
[params]

View File

@ -6,10 +6,11 @@
script = ExtResource( 1 )
[node name="Label" type="Label" parent="."]
margin_left = 353.108
margin_left = 359.408
margin_top = 248.378
margin_right = 589.108
margin_right = 595.408
margin_bottom = 358.378
rect_pivot_offset = Vector2( -0.558563, -0.7173 )
text = "Hello World"
align = 1
valign = 1