public static void WhiteModel() { BigWorldInfo = Application.streamingAssetsPath + "/" + BigWorldFile; GameObject obj = GameObject.FindGameObjectWithTag("sceneRoot"); WhiteModelSystemEditor system = new WhiteModelSystemEditor(obj); system.SetWhiteMaterial(); }
public static void SetModelMaterial() { BigWorldInfo = Application.streamingAssetsPath + "/" + BigWorldFile; GameObject obj = GameObject.FindGameObjectWithTag("sceneRoot"); obj = obj.transform.Find("ChengShiDiTu_03").gameObject; WhiteModelSystemEditor system = new WhiteModelSystemEditor(obj); system.SetModelMaterial(); }