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?
↧