How to expose other components fields
Is there any way to expose (public) fileds of components attached to selected GameObject? What I would like to do is to make some component, for triggering fields values change to defined in this component on GameObject destoy: ie. pick some GameObject with RigidBody attached and change field "useGravity" to "true". So that after this object will get destroyed, another object will have turned on it's gravity. I want it to be universal in spite of writing small script with some published method for each field I would like to change.
I hope that I was clear enough. Thanks in advance for help.
Your answer
Follow this Question
Related Questions
Is there a way to refer to the only script the object has without naming the script? 2 Answers
Drop down menu for public variables on a component in the inspector. 0 Answers
How to custom inspector with dynamic options (e.g. Light Component) 1 Answer
Multiply script of same type in single game object, how to choose in inspector 0 Answers
How to add a editing option to variables in a script in Inspector? 0 Answers