How do I make script parameter changes visible on edit time?

I have an object (a trapezoid) whose shape is controlled by a script (it has parameters that define the width of the top and the bottom). This script also has code in its FixedUpdate function that alters the coordinates of the object’s mesh’s vertices.

If I play my game in the Unity editor and tweak the script parameters, I can see the shape change just fine, but if I try to tweak the script parameters outside of play mode, nothing changes.

Is there a way to make the changes visible outside of play mode?

Found my answer. I could have written my code in the OnRenderObject function and added [ExecuteInEditMode] to my script. Another possibility would have been to wrap my logic in an “if (!Application.IsPlaying)” condition.

EDIT: Found the answer. Should have written my code in the OnRenderObject function and added [ExecuteInEditMode] to my script.