Esempio n. 1
0
        private static void DumpAll()
        {
            string name = uConsole.GetString();

            System.Type type = System.Type.GetType(name + ",Assembly-CSharp", false, true);
            if (type == null)
            {
                type = System.Type.GetType(name + ",UnityEngine", false, true);
            }

            if (type == null)
            {
                Debug.LogError("Unknown type '" + name + "'.");
                return;
            }

            foreach (Object eachObject in Resources.FindObjectsOfTypeAll(type))
            {
                if (eachObject is Component)
                {
                    GameObject gameObject = ((Component)eachObject).gameObject;
                    Debug.Log(DumpUtils.FormatGameObject(null, gameObject));
                }
                else
                {
                    Debug.Log(DumpUtils.FormatValue(null, eachObject));
                }
            }
        }
Esempio n. 2
0
        private static void PrintDetails()
        {
            if (!HasSelection())
            {
                Debug.Log("Current selection is empty.");
                return;
            }

            GameObject gameObject = CurrentGameObject();

            if (gameObject != null)
            {
                Debug.Log(DumpUtils.FormatGameObject(gameObject.name, gameObject));
                return;
            }

            System.Collections.IEnumerable enumerable = CurrentSelection() as System.Collections.IEnumerable;
            if (enumerable != null)
            {
                foreach (object value in enumerable)
                {
                    Debug.Log(DumpUtils.FormatValue(null, value));
                }
                return;
            }

            Debug.Log("Cannot print details of " + CurrentSelection());
        }
Esempio n. 3
0
        private static void Dump()
        {
            string name = uConsole.GetString();

            GameObject gameObject = (GameObject)Resources.Load(name);

            Debug.Log(DumpUtils.FormatGameObject(gameObject.name, gameObject));
        }
Esempio n. 4
0
        private static void Clouds()
        {
            UniStormWeatherSystem uniStorm = GameManager.GetUniStorm();

            Debug.Log(DumpUtils.FormatGameObject("m_lightClouds1", uniStorm.m_LightClouds1));
            Debug.Log(DumpUtils.FormatGameObject("m_lightClouds2", uniStorm.m_LightClouds2));
            Debug.Log(DumpUtils.FormatGameObject("m_HighClouds1", uniStorm.m_HighClouds1));
            Debug.Log(DumpUtils.FormatGameObject("m_MostlyCloudyClouds", uniStorm.m_MostlyCloudyClouds));
        }
Esempio n. 5
0
 private static void PrintCameras()
 {
     using (StreamWriter writer = new StreamWriter(@"C:\Users\st_dg\OneDrive\TLD\Camera.txt"))
     {
         foreach (Component eachItem in Resources.FindObjectsOfTypeAll <Camera>())
         {
             writer.WriteLine(DumpUtils.FormatGameObject(eachItem.name, eachItem.gameObject));
         }
     }
 }
Esempio n. 6
0
        private static void UniStorm()
        {
            UniStormWeatherSystem uniStormWeatherSystem = GameManager.GetUniStorm();
            GameObject            starSphere            = uniStormWeatherSystem.m_StarSphere;

            Debug.Log(DumpUtils.FormatGameObject("starSphere", starSphere));

            ObjExporter.DoExport(starSphere, true);

            Renderer starSphereRenderer = starSphere.GetComponent <Renderer>();
            Material material           = starSphereRenderer.material;

            Debug.Log(DumpUtils.FormatValue("material", material));
            Debug.Log(DumpUtils.FormatValue("mainTexture", material.mainTexture));
        }
Esempio n. 7
0
        private static void CameraEffects()
        {
            CameraEffects cameraEffects = GameManager.GetUniStorm().m_MainCamera.GetComponentInChildren <CameraEffects>();

            Debug.Log(DumpUtils.FormatGameObject(null, cameraEffects.gameObject));
        }