You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But what's about primitive types, like mAction field of Intent? It would be a nice to reduce jni calls. But if something changes this field in native object, it will not be automatically changed on C# side.
The text was updated successfully, but these errors were encountered:
Do we need to cache fields on C# side?
Caching ref fields like
PackageInfo
https://github.com/Suvitruf/unity-android-native/blob/master/Assets/UnityAndroidNative/Android/Content/Pm/PackageManager.cs#L11 inPackageManager
is not the bad idea, 'cause this ref will not be changed.But what's about primitive types, like
mAction
field ofIntent
? It would be a nice to reduce jni calls. But if something changes this field in native object, it will not be automatically changed on C# side.The text was updated successfully, but these errors were encountered: