doc
|
@ -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,缩放
|
|
@ -28,13 +28,13 @@
|
||||||
- godot和ue对比
|
- godot和ue对比
|
||||||
- 自主可控(避免被“卡脖子”),从开源软件的角度分析,godot是游戏引擎界的Linux,ue和unity算是Windows
|
- 自主可控(避免被“卡脖子”),从开源软件的角度分析,godot是游戏引擎界的Linux,ue和unity算是Windows
|
||||||
- ue虽然开源源代码,但是代码量太大,历史包袱太重,不适合深入研究底层代码的人
|
- ue虽然开源源代码,但是代码量太大,历史包袱太重,不适合深入研究底层代码的人
|
||||||
![Image text](engine-source.PNG)
|
![Image text](image/engine-source.PNG)
|
||||||
|
|
||||||
|
|
||||||
- godot的作者尽最大努力的减少第三方库的依赖,最终使其代码非常精简,适合学习
|
- godot的作者尽最大努力的减少第三方库的依赖,最终使其代码非常精简,适合学习
|
||||||
- 源代码开源,不收费,unity和ue都是要收费的,ue超过100万美元触发5%的分成费用
|
- 源代码开源,不收费,unity和ue都是要收费的,ue超过100万美元触发5%的分成费用
|
||||||
![Image text](apache-license.png)
|
![Image text](image/apache-license.png)
|
||||||
![Image text](gd-home.JPG)
|
![Image text](image/gd-home.JPG)
|
||||||
|
|
||||||
|
|
||||||
- 使用godot你既可以用GDScript去编写代码,也可以用C++去编写代码,还可以去改底层引擎代码
|
- 使用godot你既可以用GDScript去编写代码,也可以用C++去编写代码,还可以去改底层引擎代码
|
||||||
|
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 42 KiB |
|
@ -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
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
@ -2,15 +2,15 @@
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="StreamTexture"
|
||||||
path="res://.import/engine-source.PNG-6224446f4b0c318ef08a9533a9012997.stex"
|
path="res://.import/engine-source.PNG-f92c0641b2021339fd796565468ae074.stex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://doc/demo01_hello/engine-source.PNG"
|
source_file="res://doc/demo01_hello/image/engine-source.PNG"
|
||||||
dest_files=[ "res://.import/engine-source.PNG-6224446f4b0c318ef08a9533a9012997.stex" ]
|
dest_files=[ "res://.import/engine-source.PNG-f92c0641b2021339fd796565468ae074.stex" ]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
Before Width: | Height: | Size: 498 KiB After Width: | Height: | Size: 498 KiB |
|
@ -2,15 +2,15 @@
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="StreamTexture"
|
||||||
path="res://.import/gd-home.JPG-3866ba9615d150fc9f82a3f7e19e041e.stex"
|
path="res://.import/gd-home.JPG-f25736bdeff8c578ae8bf5e8dde647c8.stex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://doc/demo01_hello/gd-home.JPG"
|
source_file="res://doc/demo01_hello/image/gd-home.JPG"
|
||||||
dest_files=[ "res://.import/gd-home.JPG-3866ba9615d150fc9f82a3f7e19e041e.stex" ]
|
dest_files=[ "res://.import/gd-home.JPG-f25736bdeff8c578ae8bf5e8dde647c8.stex" ]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
After Width: | Height: | Size: 138 KiB |
|
@ -2,15 +2,15 @@
|
||||||
|
|
||||||
importer="texture"
|
importer="texture"
|
||||||
type="StreamTexture"
|
type="StreamTexture"
|
||||||
path="res://.import/apache-license.png-599073122cee1d1b6911d29651e28109.stex"
|
path="res://.import/godot-editor.PNG-b03f8dad21107b1a527907551134d978.stex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://doc/demo01_hello/apache-license.png"
|
source_file="res://doc/demo01_hello/image/godot-editor.PNG"
|
||||||
dest_files=[ "res://.import/apache-license.png-599073122cee1d1b6911d29651e28109.stex" ]
|
dest_files=[ "res://.import/godot-editor.PNG-b03f8dad21107b1a527907551134d978.stex" ]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
|
@ -6,10 +6,11 @@
|
||||||
script = ExtResource( 1 )
|
script = ExtResource( 1 )
|
||||||
|
|
||||||
[node name="Label" type="Label" parent="."]
|
[node name="Label" type="Label" parent="."]
|
||||||
margin_left = 353.108
|
margin_left = 359.408
|
||||||
margin_top = 248.378
|
margin_top = 248.378
|
||||||
margin_right = 589.108
|
margin_right = 595.408
|
||||||
margin_bottom = 358.378
|
margin_bottom = 358.378
|
||||||
|
rect_pivot_offset = Vector2( -0.558563, -0.7173 )
|
||||||
text = "Hello World"
|
text = "Hello World"
|
||||||
align = 1
|
align = 1
|
||||||
valign = 1
|
valign = 1
|
||||||
|
|