点击红色(B)区域,可以同时触发B和A的_gui_input(),可以发现canvaslayer阻断了鼠标点击事件的传播,但是又不绝对,在将C的mouse_filter设置为ignore后,点击黄色区域,会触发B和A的_gui_input()请问这是特性还是bug?如果是特性的话,如何将输入事件跨canvaslayer传播呢? 大忽悠580 GDScript 7 版本是godot4 雷伊...
物体的世界坐标如何转..嗯,我其实不想用CanvasLayer来做飘字的,但是ui好像没用zindex的属性,我试了下,只要其它节点的zindex超过2就会遮住ui,不知道有没有办法修改ui的默认zindex。
CanvasLaye..我把CanvasLayer设为全局节点GUI,在事件发生时,让生成的对话框节点(通过对话框场景实现的实例,Control节点默认在(a,b)坐标)成为它的子节点,又让摄像机节点成为了玩家节点的子节点,
https://tieba.baidu.com/p/7398152858CanvasLayer下的鼠标坐标就是上面这些原因:在CanvasLayer下,只能获得相对于窗口的坐标,不能获得相对于场景的坐标,而且解决方法也简单,你在1楼已经提到了:“在其它节点用是正常的,只有CanvasLayer下不行”,那么解决方法就是:就不用CanvasLayer了,就用其它节点...
Fix normals in TileSet when using CanvasTextures (GH-83887). Fix TileMap layer reverts and defaults (GH-83888). Fix get_used_rect, get_used_cells and get_used_cells_by_id in TileMap after a call to clear() (GH-83890). Fix Y-sort origin not working when set in TileMap runtime...
Fix normals in TileSet when using CanvasTextures (GH-83887). Fix TileMap layer reverts and defaults (GH-83888). Fix get_used_rect, get_used_cells and get_used_cells_by_id in TileMap after a call to clear() (GH-83890). Fix Y-sort origin not working when set in TileMap runtime...
3D background showing up when using canvas_item shader in SubViewport I have a scene setup where I'm trying to apply a color invert shader to the output of the SubViewport as such: and shader code on ColorRect as such: shader_type canvas_item; uniform sampler2D ... godot gdscript ...
Add visibility to CanvasLayer (GH-57900). Add OS.get_processor_name() method (GH-58157). Add optional default value to get_meta() (GH-58608). Add OS.get_screen_refresh_rate() method (GH-58812). Add Dictionary.merge() method (GH-59883). Add fill() method to Array and Pool*Array...
Canvas Layer "Follow Viewport" property does the opposite of what it is supposed to #98463 closed Nov 29, 2024 When packing a PackedScene into a scene, signals and scripts of that PackedScene are duplicated into the parent scene #48064 closed Nov 29, 2024 PackedScene Instantiate from...
Since tree chain is taken into account for the test of visible layer, changed the value to all layer active by default. Fixes #93316