- Home /
Question by
MileSplit · Apr 04, 2015 at 06:40 PM ·
standard-assets
Disabling RigidbodyFirstPersonController
Quick question, im trying to disable the RigidbodyFirstPersonController script from the new standard assets. However whenever I try this
gameObject.GetComponent<RigidbodyFirstPersonController>().enabled = false;
I get the error, The type or namespace name `RigidbodyFirstPersonController' could not be found. Are you missing a using directive or an assembly reference?
Im guessing its because RigidbodyFirstPersonController is in a different namespace?
Thank you
Comment
Answer by Xarbrough · Apr 05, 2015 at 06:20 AM
You are correct, just include:
using UnityStandardAssets.Characters.FirstPerson;