Replies: 2 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
-
If getter exists, you can try get setter using void (*set_gravity)(Unity::Vector3 &){};
// For new unity
set_gravity = (decltype(set_gravity)) BNM::GetExternMethod("UnityEngine.Physics::set_gravity_Injected");
// For old unity
set_gravity = (decltype(set_gravity)) BNM::GetExternMethod("UnityEngine.Physics::INTERNAL_CALL_set_gravity"); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My Unity game’s Physics class does not have a set_gravity() method.
How can I modify the gravity?
public static Vector3 gravity { get; }
Beta Was this translation helpful? Give feedback.
All reactions