-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextureProgress node does not display progress when value is set in code (HTML + C# Export only) #47898
Comments
@thes3m Can you reproduce this in a GDScript project? |
@Calinou No, apparently it only occurs in C#. |
I can confirm the bug with the provided project, and indeed, surprisingly it only happens with C#. Equivalent code for GDScript: extends Control
var progress : TextureProgress
func _ready():
progress = $TextureProgress
func _process(delta):
progress.value += delta
if (progress.value >= 1):
progress.value = 0 |
Apparently using Godot;
using System;
public class Progress : Control
{
private TextureProgress progress;
public override void _Ready()
{
progress = GetNodeOrNull<TextureProgress>("TextureProgress");
}
public override void _Process(float delta)
{
GD.Print(delta); // 0 on web, 0.01667 on desktop
progress.Value += delta;
if(progress.Value >= 1){
progress.Value = 0;
}
}
} |
@akien-mga Didn't even notice that |
I've tried to narrow the regression down, so far I have:
I'll test other intermediate betas and update.
Yeah actually after testing again I can't reproduce |
I haven't tried to bisect yet between 3.2.4 beta 4 and beta 5, will do in a bit. But some potential candidates:
|
I can confirm that it's a regression from #44373, CC @neikeq. I did two tests builds with the current build containers (same as for 3.3 RC 9) using Mono 6.12.0.122, and where the patch for WASM m2n trampolines should be properly applied: That's builds of 80c9f2d (merge of #44373) and 9710a38 (parent commit). |
Thanks for the bisect and for determining the cause of the bug! Saved me a lot of time. |
Fixed by #47968. |
Godot version:
3.3 RC8. RC9 x64 Mono (this issue did not occur in previous versions)
** Platform **
Windows (HTML5 Export)
Issue description:
TextureProgress node does not display correct progress when progress value is set in code. The progress bar is displayed when game starts, however as soon as
TextureProgress.Value
property is set the progress bar will disapear. This only occurs in HTML5 export (can be runned from editor).Steps to reproduce:
** Expected result **
TextureProgress should display progress on HTML5
GodotProgressBarTest.zip
The text was updated successfully, but these errors were encountered: