当前位置:网站首页>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
}边栏推荐
- A code takes you to draw multi format sangjimei pictures such as interactive +pdf+png
- mysql_ Case insensitive
- Riotboard development board series notes (VII) -- the use of framebuffer
- Backtracking to solve subset problem
- Reasons for not sending requests after uni app packaging
- C language writes a circular advertising lantern or changes it to a confession system
- Publish the project online and don't want to open a port
- 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
- Dc-1-practice
猜你喜欢

Solution: owner's smart site supervision cloud platform

Learning notes - talking about the data structure and algorithm of MySQL index and the introduction of index

Color space (1) - RGB

Brief understanding of operational amplifier

Record once C # extract audio files with ffmempeg

FLASH read / write problem of stm32cubemx

How is the virtual DOM different from the actual DOM?

NVM installation and use

Lombok detailed introduction

Imeta | ggclusternet microbial network analysis and visualization nanny level tutorial
随机推荐
Use go language to import Doris data through stream load
Sword finger offer II 041. Average value of sliding window_____ Using queue / loop array implementation
Time formatting
Force button brushing question 61. rotating linked list
Openlayers draw deletes the last point when drawing
Stm32cubemx quadrature encoder
mysql_ Master slave synchronization_ Show slave status details
How is the virtual DOM different from the actual DOM?
Swagger key configuration items
mysql_ Create temporary table
A queue of two stacks
How does Jupiter notebook change themes and font sizes?
Merge sort / quick sort
Hashcode details
Riotboard development board series notes (V) -- porting u-boot
Canvas record
Preliminary foundation JVM
Node queries the path of all files (files or folders) named filename under the target directory
Uni app configuration
[brother hero July training] day 19: binary tree