Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Performance: Accessing variables from other classes continuously versus storing them.

$
0
0
For example, always calling "transform.position" as opposed to "Vector3 pos = transform.position" then calling pos.

Which is more efficient?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>