-
Notifications
You must be signed in to change notification settings - Fork 37
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
Adding getter for RawImage and disabling user controls. #95
Conversation
Allows to disable controls on the WebBrowser instance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, I think having the ablity to disable inputs make sense, as well as exposing the handler to the image.
Happy to merge once the changes requested are done.
src/Packages/UnityWebBrowser/Runtime/Core/RawImageUwbClientInputHandler.cs
Outdated
Show resolved
Hide resolved
src/Packages/UnityWebBrowser/Runtime/Core/RawImageUwbClientInputHandler.cs
Outdated
Show resolved
Hide resolved
src/Packages/UnityWebBrowser/Runtime/Core/RawImageUwbClientInputHandler.cs
Outdated
Show resolved
Hide resolved
src/Packages/UnityWebBrowser/Runtime/Core/RawImageUwbClientInputHandler.cs
Outdated
Show resolved
Hide resolved
src/Packages/UnityWebBrowser/Runtime/Core/RawImageUwbClientInputHandler.cs
Outdated
Show resolved
Hide resolved
src/Packages/UnityWebBrowser/Runtime/Core/RawImageUwbClientInputHandler.cs
Outdated
Show resolved
Hide resolved
src/Packages/UnityWebBrowser/Runtime/Core/RawImageUwbClientManager.cs
Outdated
Show resolved
Hide resolved
Perfect thanks for the reply, I'll clean that up. |
@Voltstro should be good to review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one little thing, and thats it.
float scroll = inputHandler.GetScroll(); | ||
scroll *= browserClient.BrowserTexture.height; | ||
|
||
if (!disableMouseInputs && scroll != 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need this extra !disableMouseInputs
check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks!
So here some small edits used for my project, I though I'd share it as this could be useful for someone else too.
I needed to:
Let me know if you see possible improvements to this.