- Home /
Question by
Ziuber · Nov 16, 2015 at 08:41 AM ·
documentation
Documentation: optimizing scripts - I think there's an error.
Link: http://docs.unity3d.com/Manual/MobileOptimizationPracticalScriptingOptimizations.html
under: How to Avoid Allocating Memory
there are two identical code examples and two opposite explanations for them. Am I missing something here? Which one is correct?
Comment
Best Answer
Answer by ijidau · Nov 16, 2015 at 02:06 PM
First example is a class, second is a struct.
So you just missed the tiny detail, which I agree is not ideal. Consider lodging a suggestion: https://unity3d.com/unity/qa/bug-reporting