当前位置:网站首页>Unity word document click button to download
Unity word document click button to download
2022-07-25 03:23:00 【Little sun works hard every day】
The goal is : There is a target version downloaded in the project , Copy on your local computer , Download successful, self opening
private Button downloadBtn;
private void Awake()
{
downloadBtn = GameObject.Find("downloadButton").GetComponent<Button>();
downloadBtn.onClick.AddListener(delegate { downLoadWord(); });
}
void downLoadWord()
{
if (!File.Exists("D:\\ Experimental report .docx"))// Is there any , If not, build a new one
{
File.Create("D:\\ Experimental report .docx").Dispose();
}
File.Copy("Assets/shiyanbaogao.docx", "D:\\ Experimental report .docx", true);
System.Diagnostics.Process.Start("D:// Experimental report .docx");// open
}边栏推荐
- Solve mysql5.6 database specified key was too long; Max key length is 767 bytes
- B. Almost Ternary Matrix
- Wechat H5 record
- Take a database statement note: when the field is empty, assign the default value to the result
- Force deduction problem 238. product of arrays other than itself
- Riotboard development board series notes (VIII) -- building desktop system
- Recursive and non recursive methods are used to realize the first order, middle order and second order traversal of binary tree respectively
- JS construction linked list
- mysql_ Backup restore_ Specify table_ Backup table_ Restore table_ innobackup
- Easyexcel sets the style of the last row [which can be expanded to each row]
猜你喜欢

Openlayers ol ext: Transform object, rotate, stretch, zoom in

Flink1.15 source code reading - Flink annotations

Dc-2-range practice

Import and export using poi

mysql_ Record the executed SQL

Consistent hash, virtual node, bloom filter

Banana pie bpi-m5 toss record (3) -- compile BSP

Force deduction brush question 14. Longest common prefix

Reasons for not sending requests after uni app packaging

Vscode configuration, eslint+prettier combined with detailed configuration steps, standardized development
随机推荐
Win10 -- open the hosts file as an administrator
Analysis of cascading relation operation examples of cascade
Vscode configuration, eslint+prettier combined with detailed configuration steps, standardized development
Modulenotfounderror: no module named 'pyemd' solution
[golang] golang realizes sending wechat service number template messages
Innobackupex parameter description
Riotboard development board series notes (V) -- porting u-boot
C language introduction practice (9): completion judgment
Dc-2-range practice
Handwriting promise
NC | progress has been made in the study of the ecological network relationship between dissolved organic carbon and microorganisms in the context of global change
Analysis of DNS domain name resolution process
Swiper4 is used to smooth longitudinal seamless scrolling. After clicking or dragging the mouse, the animation is not completely completed, the mouse moves out of the automatic rotation, and the dynam
Wechat H5 record
Introduction to Apache Doris grafana monitoring indicators
Use and introduction of vim file editor
LeetCode. 302 weekly games___ 03_ 6121. Query the number smaller than k after cutting the number____ sort
Table of contents of force deduction questions
Banana pie bpi-m5 toss record (3) -- compile BSP
Stm32cubemx quadrature encoder