Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » HELP » Help (General) » Simply set Gravity Multiplier value with script (solved)

Simply set Gravity Multiplier value with script (solved)

View previous topic View next topic Go down  Message [Page 1 of 1]

Kaivis


Member [Lv. 2]
Member [Lv. 2]
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

View user profile

Kaivis


Member [Lv. 2]
Member [Lv. 2]
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!

View user profile

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum