- Home /
Is it a valid approach to check Prefab connections in OnValidate()?
simple as the title... it seems to work for my purposes, but are there reasons why I shouldn't do it?
Comment
Answer by nosmokingbandit · Jun 19, 2020 at 02:42 AM
OnValidate() is only ever called in the Editor, so you can use it for whatever you see fit. I always like to include a warning in the console if OnValidate changes anything on the object.
Your answer
Follow this Question
Related Questions
Load and Instantiate prefab so that it can be tested in Play Mode Test 1 Answer
Reducing drawcalls - Many Prefabs vs Combined Mesh 2 Answers
Cyclic nesting detected? 3 Answers
About Model Combine Optimization? 1 Answer
Setting a game object from a list to be the active character that gets instantiated 1 Answer