Replies: 1 comment
-
index.d.ts Generator: https://github.com/Tencent/puerts/blob/master/unity/Assets/core/upm/Editor/Src/Generator/DTS.cs#L279, change the property / method name |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am looking for a way to bind C# properties or methods to JavaScript in a case-sensitive manner using Puerts. Specifically, I would like to access properties in JavaScript with lowercase names even if they are defined with uppercase names in C#.
For example:
With this, on the JavaScript side, I want to access the property as
class.color
instead ofclass.Color
.My main questions are:
Any guidance or suggestions would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions