Polarith AI
1.7

◆ OnValidate()

override void OnValidate ( )
protectedinherited

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.

Imprint