Skip to content

Add WebGL file upload support to ImageButton#464

Merged
uezo merged 1 commit intomasterfrom
develop
Aug 20, 2025
Merged

Add WebGL file upload support to ImageButton#464
uezo merged 1 commit intomasterfrom
develop

Conversation

@uezo
Copy link
Owner

@uezo uezo commented Aug 20, 2025

Introduced a JavaScript plugin (FileUploader.jslib) for WebGL builds to enable image file selection and resizing via a browser file dialog. Updated ImageButton.cs to use the new plugin when running in WebGL, allowing users to upload images directly.

NOTE: This feature doesn't work in Safari on Mac. We also modified UIControlContainer so that removing the ImageButton no longer causes errors.

Introduced a JavaScript plugin (FileUploader.jslib) for WebGL builds to enable image file selection and resizing via a browser file dialog.
Updated ImageButton.cs to use the new plugin when running in WebGL, allowing users to upload images directly.

NOTE: This feature doesn't work in Safari on Mac. We also modified `UIControlContainer` so that removing the ImageButton no longer causes errors.
@uezo uezo merged commit c97607e into master Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant