Can We use OnValidate instead of onUpdate


If it is OnUpdate, most times the function will just return. What we actually need is when there is a blank on uniqueIdentifier we can fill it. I just change it to onValidate it seems it works fine.

That’s my preference as well. Please note that you’re going to have to surround that in an #if UNITY_EDITOR block before you try to build the game to an executable.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms