Files
ichni_Creator_Studio/Document/console.md
2025-06-08 12:57:49 +08:00

39 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Console概要
Editor内有console系统用于执行某些方便的操作。
在编辑界面内按 **`** esc下面键可以唤出console输入框在其中输入完成后按enter键即可尝试执行框内的指令。
输入框配有上下文,在输入时按上下箭头可以跳转到上一次的指令。
输入格式按照 **func "abc123" 1 2 [0,1,2]** 的格式输入,也可以用**func(1,2,3,"a",[1,2,3])**输入,其中值大多是数字值,如果是字符的话,需要带上双引号(`"abc123"`如果是向量vector23就需要用中括号括起来(` [0,0,1] `)。
如果因为某种原因而导致指令执行失败的话会在下面的log window有提醒。
有一些指令是依托于右边的inspector窗口来获取物体的所以在执行操作前注意选中要执行的物体。
## 命令列表
(格式:命令名字 值1 值2 …值x
tp(Vector3 pos)
将场景相机移动到指定的三维坐标 pos。
tp()
将场景相机移动到当前 Inspector 选中元素的位置。
reName(string message)
将当前 Inspector 选中元素的名称改为 message。
lgp(int loop, Vector3 start, Vector3 end)
在选中的 Track 上,按线性插值方式批量生成 loop 个 PathNode起止点为 start 和 end。
spiral(int loop, Vector3 center, float r, float h, int pointsPerTurn, string axis = "y")
在选中的 Track 上按指定主轴x/y/z和参数批量生成螺旋线分布的 PathNode。
spiral(int loop, Vector3 center, float r, float h, int pointsPerTurn, Vector3 dir)
在选中的 Track 上按任意方向dir 向量)和参数,批量生成螺旋线分布的 PathNode。
## 其他
在做了