- Home /
.active or .enabled?
I am trying to deactivate a rigidbody by using rigidbody.active. However, I get a warning telling me .active is obsolete, and that I should use .enabled. Nut this throws up an error! what do I use?
The original message is generally correct (use enabled), but there are some components which don't have that property. Rigidbody does not.
You might try setting is$$anonymous$$inematic. While that flag is true, the rigidbody won't apply any physics.
You should also check if disabling the entire GameObject will meet your needs.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Not correct OnGUI documentation 1 Answer
An OS design issue: File types associated with their appropriate programs 1 Answer
C# Generating Documentation Comments 1 Answer