Version: 2017.2

描述

加载脚本后或 Inspector 中的值发生更改时,将调用该函数(只能在 Editor 中调用)。

Use this function to validate the data of your MonoBehaviours. This can be used to ensure that when you modify date in an editor that the data stays within a certain range.