Skip to content
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

[EXPERIMENTAL] render over native ui #584

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

KojiNakamaru
Copy link
Member

cf. #503

The followings should be enabled:

  • Use 32-bit Display Buffer
  • Render Over Native UI

@AndrewSpalato-FGMNT
Copy link

Is the webview interactable with this implementation?

@KojiNakamaru
Copy link
Member Author

Unfortunately, no it isn't.

@AndrewSpalato-FGMNT
Copy link

Unfortunately, no it isn't.

Ok, thanks.

@iletai
Copy link

iletai commented Apr 6, 2022

Hi, any update or something change about this @KojiNakamaru . I also many thank you with implement, optimize.. this repository.
ありがとうございます

@KojiNakamaru
Copy link
Member Author

@iletai There is no update. As this pull request is very experimental and has a big limitation about interaction, it is difficult to make this practical.

@UnityDev9999
Copy link

@KojiNakamaru
32 bit display buffer is not there in ios settings.
Will it also work?

@UnityDev9999
Copy link

I can't interact with the webview page anymore it is needed what is the solution now

@KojiNakamaru
Copy link
Member Author

@UnityDev524 This experimental implementation worked for both Android and iOS when it was created. However, it is for viewing only, because handling events is difficult as discussed in #503 . If you really need to display webviews behind Unity's UI, it is better to consider other solutions such as discussed in #612 (comment) .

@KojiNakamaru KojiNakamaru force-pushed the experimental/unity-over-native-ui branch from 8c97267 to 5391860 Compare October 10, 2023 03:42
@UnityDev9999
Copy link

Hi @KojiNakamaru
I can see you have made some changes today.
Is Webview intraction issue resolved while we render unity UI over webview?

@KojiNakamaru
Copy link
Member Author

@UnityDev524 No, I've just rebased this branch on the latest master branch.

@KojiNakamaru KojiNakamaru force-pushed the experimental/unity-over-native-ui branch from 5391860 to 2299112 Compare October 13, 2023 11:40
@KojiNakamaru
Copy link
Member Author

Updated to allow touch events for webviews. It is necessary to set masks to guard events not to be sent to webviews, for example:

0a1882c

    webViewObject.ClearMasks();
    webViewObject.AddMask(0, 0, Screen.width, 100);

@KojiNakamaru KojiNakamaru force-pushed the experimental/unity-over-native-ui branch 3 times, most recently from c3b30ad to 1bf649e Compare October 25, 2023 07:35
@KojiNakamaru KojiNakamaru force-pushed the experimental/unity-over-native-ui branch 3 times, most recently from da8931c to 4bc75c8 Compare November 10, 2023 16:13
@KojiNakamaru KojiNakamaru force-pushed the experimental/unity-over-native-ui branch 3 times, most recently from 94e2f54 to 481bf6d Compare November 19, 2023 03:36
@KojiNakamaru KojiNakamaru force-pushed the experimental/unity-over-native-ui branch from 481bf6d to 72d5c14 Compare November 26, 2023 19:56
@KojiNakamaru KojiNakamaru force-pushed the experimental/unity-over-native-ui branch from 72d5c14 to a29fa36 Compare November 30, 2023 21:42
@KojiNakamaru KojiNakamaru force-pushed the experimental/unity-over-native-ui branch from a29fa36 to a9dfeb0 Compare December 4, 2023 15:16
@KojiNakamaru KojiNakamaru force-pushed the experimental/unity-over-native-ui branch from a9dfeb0 to 7231233 Compare December 5, 2023 14:01
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.

4 participants