title: Changing prefab instances through script
body: <p>I made a prefab gameObject with a rigidbody component attached. <strong>Whenever I change the mass of the original prefab from the inspector, all the instances present in the scene get affected (the field is not overridden). But when I try to do the same thing using a script, the mass of the instances remain unchanged</strong> (only the main prefab is affected and every time I enter play mode, it retains its previous value!). The script is attached to another gameObject and looks like this:</p>
  
  <pre><code>using UnityEngine;
  using System.Collections;
  
  public class CubeScript : MonoBehaviour {
  
      public GameObject largeCube; // dragged the original prefab in the inspector
      private Rigidbody rb;
      // Use this for initialization
      void Start () 
      {
  
          rb = (Rigidbody) largeCube.GetComponent ("Rigidbody");
          rb.mass = 44; // this is not changing the instances, rather only the main prefab. Note that the mass is not overridden
  
      }
  
  }
  </code></pre>
  
  <p>I don't understand as a beginner. Please explain this to me.</p>