You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My project needs exe transparency, so I set Transparent and per Pixel Transparency in project-General-Display to true, and my rendering mode is Compatibility. Now I will display some pictures after starting the program, so I set texturerect/colorrect's visible to true, but I found that after setting it to true, the transparency of texturerect/colorrect suddenly changed, and it returned to normal after less than 10 seconds. After testing it several times, I found that if I display the picture after 10 seconds, it will be normal. It seems that the godot engine is initializing something, and it will be fine after initialization (maybe related to rendering), because if I don't set transparent, there is no problem. Can anyone help me and tell me how to deal with it.
System information
Win11,godot4.3 C#
Issue description
20250107_143438.mp4
Steps to reproduce
I just pressed the A key when the program started to make the Icon appear
here is my code
publicpartialclassNodeTest:Node{privateTextureRect_textureRect;// Called when the node enters the scene tree for the first time.publicoverridevoid_Ready(){_textureRect=GetNode<TextureRect>("TextureRect");_textureRect.Texture=GD.Load<Texture2D>("res://icon.svg");}// Called every frame. 'delta' is the elapsed time since the previous frame.publicoverridevoid_Process(doubledelta){}publicoverridevoid_Input(InputEvent@event){if(@eventisInputEventKeykeyEvent&&keyEvent.Pressed){if(keyEvent.Keycode==Key.A){GD.Print("A was pressed");_textureRect.Visible=true;}if(keyEvent.Keycode==Key.S){GD.Print("S was pressed");_textureRect.Visible=false;}}}}
Minimal reproduction project (MRP)
see above
The text was updated successfully, but these errors were encountered:
Tested versions
My project needs exe transparency, so I set Transparent and per Pixel Transparency in project-General-Display to true, and my rendering mode is Compatibility. Now I will display some pictures after starting the program, so I set texturerect/colorrect's visible to true, but I found that after setting it to true, the transparency of texturerect/colorrect suddenly changed, and it returned to normal after less than 10 seconds. After testing it several times, I found that if I display the picture after 10 seconds, it will be normal. It seems that the godot engine is initializing something, and it will be fine after initialization (maybe related to rendering), because if I don't set transparent, there is no problem. Can anyone help me and tell me how to deal with it.
System information
Win11,godot4.3 C#
Issue description
20250107_143438.mp4
Steps to reproduce
I just pressed the A key when the program started to make the Icon appear
here is my code
Minimal reproduction project (MRP)
see above
The text was updated successfully, but these errors were encountered: