Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17063

Unity C#: Improved Out Parameters (C# 7.0)

$
0
0

Today I'm starting a new series of short posts about neat C# features that many Unity game developers are missing on. In this post, you will learn about the improved Unity C# out Parameters feature that is available since C# 7.0.

When programming your game, you'll often run into the need of returning multiple values within from a function.

Traditionally speaking, you have several ways to return multiple values.

In C++ is very common to use pointers/references as a way to return modified or even new variables. This often comes with requiring strong naming conventions to …


Viewing all articles
Browse latest Browse all 17063

Trending Articles



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