This function is called when the script is loaded or a value is changed in the Inspector (Called in the editor only).
这个函数在脚本被加载或在检查器中改变一个值时被调用(仅在编辑器中调用)
You can use this to ensure that when you modify data in an editor, that data stays within a certain range.
你可以使用这个函数来确保当你在编辑器中修改数据时,数据保持在一定范围内