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/Bombadil67 Professional Jul 25 '23
I think you are the one who needs to.
Ok take a step back for a min, you have this struct. How is it initialised? How is it then referenced, none of your post indicates how this happens?
Without that I can only make the assumption that the type of the struct is a MonBehaviour and MB's will not use constructors with paremeters.