Polarith AI
1.8

◆ OnValidate()

override void OnValidate ( )
protectedvirtual

This function is called when the script is loaded or a value is changed in the inspector (editor only).

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

Reimplemented from AIMBehaviour.

Imprint