UnityNinja Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

UnityNinja CommunityLog in

UnityNinja - Video Game Development Community, including Resources, Forums, Marketplace & More.


descriptionSimply set Gravity Multiplier value with script (solved) EmptySimply set Gravity Multiplier value with script (solved)

more_horiz
Hi everyone!

The subject says is all, but I've been struggling with this all day. How do I set that value with a script?

Kind regards

Last edited by Kaivis on Sat May 16, 2015 8:12 pm; edited 1 time in total

descriptionSimply set Gravity Multiplier value with script (solved) EmptyRe: Simply set Gravity Multiplier value with script (solved)

more_horiz
I found it so I am posting the solution just in case some one else stumbles upon this one.

In the FirstController.cs script you must add "[SerializeField] private float m_GravityMultiplier;" and then under Void Start put in "m_GravityMultiplier = 10f;". That solved my problem. I hope it helps!
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum
power_settings_newLogin to reply