title: How to access the properties of any created Game Object from another script Unity C # 2D
body: <p>I have instantiated multiple game objects like this part of the code:</p>
  
  <pre><code>GameObject newCard = Instantiate(CardPrefab, new Vector3(x, y, z), transform.rotation);
  </code></pre>
  
  <p>x,y and z being parameter so I could spawn the objects in different positions.</p>
  
  <p>My question is how could I access the name of the Game objects or the properties from another script. Each of my game objects has a property which gives it a value.</p>
  
  <p>In another script I want to add the values of all objects but I am not sure how to access the objects from another script to get their name and values.</p>
  
  <p>Thanks for the support.</p>