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

[BUG]: #if URS_USE_TEXTMESHPRO define directive stops EmulateInputField.cs from working with TMPro Input Fields #1006

Open
SamJTeleqo opened this issue Aug 30, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@SamJTeleqo
Copy link

Package version

3.1.0-exp.7

Environment

* OS: Windows 11
* Unity version: 2022.3.19f1
* Graphics API: URP
* Browser: Microsoft Edge

Steps To Reproduce

  1. Render Stream into the project
  2. Select a Text Mesh Pro input field
  3. Attempt keyboard input and it doesn't work
  4. Manually add the define directive to the project or remove it from the code and it will work

Current Behavior

All TMPro functionality in EmulateInputField.cs is wrapped in the define directive #if URS_USE_TEXTMESHPRO, preventing it from functioning.

I don't know the intention of this directive. I imagine it's supposed to check and be true if your project contains the TMPro package, but that is not the case. If the intention is just to add it to manually add it to the project if you use the TMPro package, that is very confusing, as I wasn't aware that this script existed at all, let alone that it needed a special define directive.

Expected Behavior

I expected TMPro input fields to work by default while Render Streaming, not need me to manually add a specific define directive.

Anything else?

No response

@SamJTeleqo SamJTeleqo added the bug Something isn't working label Aug 30, 2024
@SamJTeleqo SamJTeleqo changed the title [BUG]: #if URS_USE_TEXTMESHPRO define directive stops EmulateInputField.cs from working with TMPro Input FIelds [BUG]: #if URS_USE_TEXTMESHPRO define directive stops EmulateInputField.cs from working with TMPro Input Fields Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants