How to assign script property to another script property through the editor ?

Hello guys,

I have a script that exposes a public int property in order to test the value at some point during the game. I’d like to assign to this property another script int property - but I’m not able to drop a script in the editor int field and then choose which int property I’d like to assign. It’s sounds logical to me but I don’t know how to achieve my goal.

To resume I’d like to be able to :

  • have a ModelScript which contains a public int life
  • have a ControlerScript that exposes a public int property
  • Assigned the ModelScript life property to the ControlerScript public property in the editor.

Is there a way to achieve that ?

Thank you.

copy/paste the value… dragging the script would require the inspector slot to be for the scripts class, and it would create a reference and not allow you to pick the value etc.