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

trimStart(Char) variant isn't exposed in Udon sharp anymore #6

Closed
nocturnalong opened this issue Jan 29, 2024 · 4 comments
Closed

trimStart(Char) variant isn't exposed in Udon sharp anymore #6

nocturnalong opened this issue Jan 29, 2024 · 4 comments

Comments

@nocturnalong
Copy link

Assets/USharpVideoSubtitles/Scripts/SubtitleManager.cs(545,75): Method is not exposed to Udon: 'text.Substring(text.IndexOf(@"{\an") + 6).TrimStart(' ')'
Code_2YAI6q2D54

this could be fixed by changing to a different trimStart variant, my VRChat SDK - Worlds version is 3.5.0

@jacklul
Copy link
Owner

jacklul commented Jan 29, 2024

v1.2.0 beta does not use that method so I would try that instead
I haven't updated to Unity 2022 yet so I'm not up to date with the changes

Days since VRChat broke something in the SDK: 0

@nocturnalong
Copy link
Author

v1.2.0 beta does not use that method so I would try that instead I haven't updated to Unity 2022 yet so I'm not up to date with the changes

oh i just use TrimStart(new char[' ']) in the meantime, seems to work exactly like original code

Code_Bc5o48Fknc

@jacklul
Copy link
Owner

jacklul commented May 5, 2024

This will be fixed in future release of VRChat: https://feedback.vrchat.com/sdk-bug-reports/p/350-beta1-stringtrim-stringtrimstart-and-stringtrimend-are-not-exposed-to-udon-i

@jacklul
Copy link
Owner

jacklul commented May 31, 2024

Fixed in VRChat SDK 3.6.0.

@jacklul jacklul closed this as completed May 31, 2024
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

No branches or pull requests

2 participants