- Home /
Is it possible to detect changes to a different component within an editor script?
I'm writing an editor script that will change values to child GameObjects depending on values given to the parent GameObject.
For example:
Parent GO has Camera + ScriptX -> Child1 GO has Camera -> Child2 GO has Camera
Is it possible for the editor script for ScriptX to detect changes to Parent.camera, so that it can send the same changes down to Child1.camera and Child2.camera?
You can have a script that controls all the camera properties. Then when you change it, apply it to all the other children.
Your answer
Follow this Question
Related Questions
can't dynamically add scripts to gameObjects via Editor 0 Answers
How do you force a particle system to play all the time in the editor, not just when it is selected? 5 Answers
Set MinWidth for EditorWindow 1 Answer
EditorWindow texture effected by Playmode Color Tint 1 Answer
Start/Stop Playmode from editor script 10 Answers