Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AddFileToCopy(string, string)

Declare a file to copy into the Gradle project.
Read time 1 minuteLast updated 5 days ago

Definition

public void AddFileToCopy(string source, string destination)

Parameters

source

The path to a source file. This can be an absolute or relative path. If it's relative, the root of the path is the Unity project's root.

destination

The path to place the file copy. This is relative to the Gradle project root.

Remarks

If another file with the same destination has already been added, Unity throws an exception.