title: Instantaited Rigidbody not changing bodytype
body: <p>I am dynamically loading GameObjects from a JSON file into the Scene.<br>
  I am able to instantiate GameObjects from a prefab, but facing issue changing the RigidBody2d properties. </p>
  
  <p><strong>Instantiation</strong> </p>
  
  <pre class="lang-cs prettyprint-override"><code>GameObject greenObj = Instantiate(rotateBouncerObject, 
             new Vector3(gamObj.position.x, gamObj.position.y, 0),     
             Quaternion.Euler(gamObj.rotation.eulerAngles.x,
             gamObj.rotation.eulerAngles.x, gamObj.rotation.eulerAngles.z));
  </code></pre>
  
  <p>The problem I am facing is that when I change the property of RigidBody2D like bodyType it doesn't change. I am changing the bodyType using the code from Kinematic to Dynamic like this. </p>
  
  <pre class="lang-cs prettyprint-override"><code>greenObj.GetComponent&lt;Rigidbody2D&gt;().bodyType = RigidbodyType2D.Dynamic. 
  </code></pre>
  
  <p>When I check in Unity Editor the body type is not updated, but when I log the bodyType it gives me changed bodyType. </p>
  
  <p>Need your inputs on this.</p>