Search Unity

  1. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  2. Dismiss Notice

Unity il2cpp support Tuple?

Discussion in 'Scripting' started by zhuxianzhi, Jan 6, 2021.

  1. zhuxianzhi

    zhuxianzhi

    Joined:
    Mar 30, 2015
    Posts:
    85
    Code (CSharp):
    1.     private (int, int) Test()
    2.     {
    3.         return (100, 200);
    4.     }
    5.     private Tuple<int, int> Test1()
    6.     {
    7.         return Tuple.Create(100, 200);
    8.     }
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    5,844
  3. bobisgod234

    bobisgod234

    Joined:
    Nov 15, 2016
    Posts:
    951
    Did you test this out yourself?

    The frustrating things about questions like this is you can easily just find out the answer for yourself by trying it in a blank project.
     
unityunity