Answers for "unity structs"

C#
1

unity structs

public class ClassAtachGameobject : MonoBehaviour {
      struct myPoint{
        int x;             
        int y;         
      }         
      public myPoint mp;          
    }
Posted by: Guest on September-02-2021
-1

unity struct

public class MyClass
 {
       public int valueA, valueB;
 }
 public class MyStruct
 {
      public int valueA, valueB;
 }
 
 void MyMethod(MyClass myClassObject);
 void MyMethod(MyStruct myStructObject);
Posted by: Guest on May-20-2021

C# Answers by Framework

Browse Popular Code Answers by Language