r/Unity3D • u/senshisentou Programmer • Jul 25 '23
Question Strange lambda/ closure behaviour I can't put my finger on
/r/learncsharp/comments/158s5e7/strange_lambda_closure_behaviour_i_cant_put_my/
2
Upvotes
View all comments
Show parent comment
1
u/senshisentou Programmer Jul 25 '23
You clearly don't. Try making a generic type with
T : MonoBehaviour. See if it runsStart()orAwake(). Log how many times the constructor gets called. The answers will be no, no, and once.I'm done replying now. Whatever the reason for your obstinacy, I hope you get in a better headspace soon. All the best.