-
(int, int, float) f1() { return (1,2,1.5f);} (int j, int k, float l) f2() { return (1,2,1.5f);} void fmain() { (int a, int b, float f)r = f1(); (int c, int d, float g) = f1(); Debug.Log("type1: " + r.a); Debug.Log("type2: " + c); Debug.Log("type3: " + f2().k); }
'Unity' 카테고리의 다른 글
Unity - Prefabs (1) 2021.03.25 Unity - MonoBehaviour 생성 (0) 2021.03.25 Unity - Script Component얻기 (0) 2021.03.25 Unity - Vertex (0) 2021.03.22 Unity - Renderer.material 수정 (0) 2021.03.21 마우스로 Obj 튕겨 밀어내기 (0) 2021.03.21 Unity - Vector3 rotate (vector 회전) (0) 2021.03.20 Unity - Rigidbody.AddForce (0) 2021.03.20