title: How do I set the color of a single meshinstance?
body: <p>I have a simple character scene that I instance several times in the main level scene. It's a kinematic body with a meshinstance and a collision shape as children. I've attached the following script to the scene, with the intent that I could easily change the body color of a character in the editor.</p>
  <pre><code>tool
  extends KinematicBody
  
  const char_material = preload(&quot;res://Materials/Character_material.tres&quot;)
  export var body_color: Color setget change_color
  
  func change_color(new_color: Color):
      var new_material = char_material
      new_material.albedo_color = new_color
      $BodyMesh.material_override = new_material
      body_color = new_color
  </code></pre>
  <p>This script works as expected, except that when I change the color of one character all characters change color. What's the best way to change the color of only one character?</p>