Quantcast
Channel: Latest Questions by frogsbo
Viewing all articles
Browse latest Browse all 90

U3D version 4 optional function parameters in javascript and c#

$
0
0
Can someone please demonstrate the Unity3d optional function parameters? i.e. function human(name:string,required; age: int, optional; shoesize:float,optional; haircolor : Color : optional) ... is there a way of invoking the above function with different combinations, just say the human'name and hair color, the human's name and shoe size?, the compiler could recognise which parameters were intended according to their data type?

Viewing all articles
Browse latest Browse all 90

Trending Articles



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