Beispiel #1
0
        internal static void GetMethodsReturningType(Type searchedType)
        {
            string[] dllsUnityEngine = TypeCounter.GetUnityEngineAssemblysNames();
            TypeBag  typebag         = new TypeBag();

            GetEverythingUsingChosenType(dllsUnityEngine, searchedType, ref typebag.allMethodsReturningChosenType, ref typebag.allMethodsWithParametersOfType,
                                         ref typebag.allPropertiesReturningChosenType, ref typebag.allFieldsReturningChosenType);

            PrintAllMethodsNames(typebag.allMethodsReturningChosenType, searchedType);
            PrintAllPropertiesNames(typebag.allPropertiesReturningChosenType, searchedType);
            PrintAllMethodsWithParametersOfType(typebag.allMethodsWithParametersOfType, searchedType);
            PrintAllFieldsNames(typebag.allFieldsReturningChosenType, searchedType);
        }
Beispiel #2
0
        internal static void GetMethodsReturningTypeDotNet(Type searchedType)
        {
//			var assemblies = AppDomain.CurrentDomain.GetAssemblies ();
            var assembly = Assembly.GetAssembly(searchedType);

            string[] dllsUnityEngine2 = { assembly.GetName().Name };

            string[] dllsUnityEngine3 = TypeCounter.GetUnityEngineAssemblysNames();
            string[] dllsUnityEngine  = new string[dllsUnityEngine3.Length + dllsUnityEngine2.Length];
            Array.Copy(dllsUnityEngine2, dllsUnityEngine, dllsUnityEngine2.Length);
            Array.Copy(dllsUnityEngine3, 0, dllsUnityEngine, dllsUnityEngine2.Length, dllsUnityEngine3.Length);

            TypeBag typebag = new TypeBag();

            GetEverythingUsingChosenType(dllsUnityEngine, searchedType, ref typebag.allMethodsReturningChosenType, ref typebag.allMethodsWithParametersOfType,
                                         ref typebag.allPropertiesReturningChosenType, ref typebag.allFieldsReturningChosenType);

            PrintAllMethodsNames(typebag.allMethodsReturningChosenType, searchedType);
            PrintAllPropertiesNames(typebag.allPropertiesReturningChosenType, searchedType);
            PrintAllMethodsWithParametersOfType(typebag.allMethodsWithParametersOfType, searchedType);
            PrintAllFieldsNames(typebag.allFieldsReturningChosenType, searchedType);
        }
 private static void ShowImporters()
 {
     TypeCounter.GetImporters();
 }
 private static void ShowScriptableObjects()
 {
     TypeCounter.GetScriptableObject();
 }
 private static void ShowIDisposablesAll()
 {
     TypeCounter.GetIDispose();
 }
 private static void ShowIEnumeratorsAll()
 {
     TypeCounter.GetIEnumerators();
 }
 private static void ShowEffectors2DAll()
 {
     TypeCounter.GetEffectors();
 }
 private static void ShowYieldInstructionsAll()
 {
     TypeCounter.GetYieldInstructions();
 }
 private static void ShowIMGUIClasses()
 {
     TypeCounter.GetIMGUI();
 }
 private static void ShowComponentsAll()
 {
     TypeCounter.GetAllComponents();
 }
 private static void ShowCreateColliderHierarchy()
 {
     TypeCounter.CreateHierarchy("Collider2DOr3D", TypeCounter.IsCollider2DOr3D);
 }
 private static void ShowCreateJoint2DHierarchy()
 {
     TypeCounter.CreateHierarchy("Joint2DOr3D", TypeCounter.IsJoint2DOr3D);
 }
 private static void ShowCreateMotionHierarchy()
 {
     TypeCounter.CreateHierarchy("Motion", TypeCounter.IsMotion);
 }
 private static void ShowCreateSOHierarchy()
 {
     TypeCounter.CreateHierarchy("SO", TypeCounter.IsSO);
 }
 private static void ShowCreateTexturesHierarchy()
 {
     TypeCounter.CreateHierarchy("Textures", TypeCounter.IsTexture);
 }
 private static void ShowCreateRenderersHierarchy()
 {
     TypeCounter.CreateHierarchy("Renderers", TypeCounter.IsRendererComponent);
 }
 private static void ShowClassesAll()
 {
     TypeCounter.GetAllClasses();
 }
 private static void ShowAssetsWithoutSO()
 {
     TypeCounter.GetAssetsWithoutSO();
 }