public static void OCQDODDDDQ() { if (GetEasyRoads3DObjects()) { ODCCQOCQOD.OCQDODDDDQ(Selection.activeGameObject); } else { EditorUtility.DisplayDialog("Alert", "No EasyRoads3D objects found! Terrain functions cannot be accessed!", "Close"); } }
public static void GetAllData() { if (GetEasyRoads3DObjects()) { OCQQOODDOD.OCDDCCOOQQ(Selection.activeGameObject); ODCCQOCQOD.OCQDODDDDQ(Selection.activeGameObject); OCQQOODDOD.OQCDCOODOC(Selection.activeGameObject, null, ""); } else { EditorUtility.DisplayDialog("Alert", "No EasyRoads3D objects found! Terrain functions cannot be accessed!", "Close"); } }
public static void RestoreAllData() { if (GetEasyRoads3DObjects()) { OCQQOODDOD.OOQQCDDDCO(Selection.activeGameObject); ODCCQOCQOD.OCODDDQQOO(true, 100, 4, "", Selection.activeGameObject); OCQQOODDOD.OQOOCQOOOQ(Selection.activeGameObject); } else { EditorUtility.DisplayDialog("Alert", "No EasyRoads3D objects found! Terrain functions cannot be accessed!", "Close"); } }
public static void OQDDDODQQC() { if (GetEasyRoads3DObjects()) { string path = ""; if (EditorUtility.DisplayDialog("Road Splatmap", "Would you like to merge the terrain splatmap(s) with a road splatmap?", "Yes", "No")) { path = EditorUtility.OpenFilePanel("Select png road splatmap texture", "", "png"); } ODCCQOCQOD.OCODDDQQOO(true, 100, 4, path, Selection.activeGameObject); } else { EditorUtility.DisplayDialog("Alert", "No EasyRoads3D objects found! Terrain functions cannot be accessed!", "Close"); } }
public void OCODQDOCOC(Transform tr, List <ODODDQQO> arr, String[] DOODQOQO, String[] OODDQOQO) { version = "2.5.6"; ODCOOCDQQC = (GUISkin)Resources.Load("ER3DSkin", typeof(GUISkin)); ODCCDDCCDO = (Texture2D)Resources.Load("ER3DLogo", typeof(Texture2D)); if (RoadObjectScript.objectStrings == null) { RoadObjectScript.objectStrings = new string[3]; RoadObjectScript.objectStrings[0] = "Road Object"; RoadObjectScript.objectStrings[1] = "River Object"; RoadObjectScript.objectStrings[2] = "Procedural Mesh Object"; } obj = tr; OQQCDCOCQO = new OOCOOCQQDQ(); OOOOOCQOCO = obj.GetComponent <RoadObjectScript>(); foreach (Transform child in obj) { if (child.name == "Markers") { ODOQCQDDCQ = child; } } RoadObjectScript[] rscrpts = (RoadObjectScript[])FindObjectsOfType(typeof(RoadObjectScript)); OOCOOCQQDQ.terrainList.Clear(); Terrain[] terrains = (Terrain[])FindObjectsOfType(typeof(Terrain)); foreach (Terrain terrain in terrains) { Terrains t = new Terrains(); t.terrain = terrain; if (!terrain.gameObject.GetComponent <EasyRoads3DTerrainID>()) { EasyRoads3DTerrainID terrainscript = (EasyRoads3DTerrainID)terrain.gameObject.AddComponent <EasyRoads3DTerrainID>(); string id = UnityEngine.Random.Range(100000000, 999999999).ToString(); terrainscript.terrainid = id; t.id = id; } else { t.id = terrain.gameObject.GetComponent <EasyRoads3DTerrainID>().terrainid; } OOCOOCQQDQ.OODOQDQODQ(t); } ODCCQOCQOD.OODOQDQODQ(); if (roadMaterialEdit == null) { roadMaterialEdit = (Material)Resources.Load("materials/roadMaterialEdit", typeof(Material)); } if (objectType == 0 && GameObject.Find(gameObject.name + "/road") == null) { GameObject road = new GameObject("road"); road.transform.parent = transform; } OQQCDCOCQO.OOCOCQOOQC(obj, ODOCCCQQDD, OOOOOCQOCO.roadWidth, surfaceOpacity, out ODDCQOCODC, out indent, applyAnimation, waveSize, waveHeight); OQQCDCOCQO.ODCCQCDCDQ = ODCCQCDCDQ; OQQCDCOCQO.ODCQCQQQCO = ODCQCQQQCO; OQQCDCOCQO.OdQODQOD = OdQODQOD + 1; OQQCDCOCQO.OOQQQDOD = OOQQQDOD; OQQCDCOCQO.OOQQQDODOffset = OOQQQDODOffset; OQQCDCOCQO.OOQQQDODLength = OOQQQDODLength; OQQCDCOCQO.objectType = objectType; OQQCDCOCQO.snapY = snapY; OQQCDCOCQO.terrainRendered = OCDCCDOOOD; OQQCDCOCQO.handleVegetation = handleVegetation; OQQCDCOCQO.raise = raise; OQQCDCOCQO.roadResolution = roadResolution; OQQCDCOCQO.multipleTerrains = multipleTerrains; OQQCDCOCQO.editRestore = editRestore; OQQCDCOCQO.roadMaterialEdit = roadMaterialEdit; OQQCDCOCQO.renderRoad = renderRoad; OQQCDCOCQO.rscrpts = rscrpts.Length; OQQCDCOCQO.blendFlag = blendFlag; OQQCDCOCQO.startBlendDistance = startBlendDistance; OQQCDCOCQO.endBlendDistance = endBlendDistance; OQQCDCOCQO.iOS = iOS; if (backupLocation == 0) { OCQQOCDCCD.backupFolder = "/EasyRoads3D"; } else { OCQQOCDCCD.backupFolder = OCQQOCDCCD.extensionPath + "/Backups"; } ODODQOQO = OQQCDCOCQO.OOOCCQCQOO(); ODODQOQOInt = OQQCDCOCQO.OOOODCDDOQ(); if (OCDCCDOOOD) { doRestore = true; } OOCOOQCQQD(); if (arr != null || ODODQOOQ == null) { OQQODDQCQD(arr, DOODQOQO, OODDQOQO); } if (doRestore) { return; } }