Quantcast
Channel: Answers for "Copy a resource file to build directory?"
Browsing all 9 articles
Browse latest View live

Answer by Jason 15

The only way I've found so far is to put your file(s) in the root of the Plugins directory and append the '.dll' extension to them, even if they're not dlls. For example, if you have text.xml then name...

View Article



Answer by Clem

You could write a custom build script that copies the file(s) for you. Something like:string[] scenes = {"Assets/myScene.unity"}; BuildPipeline.BuildPlayer(scenes , "Build/game.unity3d",...

View Article

Answer by castor

Why not use the StreamingAssets folder? That's for those cases I think. https://docs.unity3d.com/Manual/StreamingAssets.html https://docs.unity3d.com/ScriptReference/Application-streamingAssetsPath.html

View Article

Answer by Jason 15

The only way I've found so far is to put your file(s) in the root of the Plugins directory and append the '.dll' extension to them, even if they're not dlls. For example, if you have text.xml then name...

View Article

Answer by Clem

You could write a custom build script that copies the file(s) for you. Something like:string[] scenes = {"Assets/myScene.unity"}; BuildPipeline.BuildPlayer(scenes , "Build/game.unity3d",...

View Article


Answer by castor

Why not use the StreamingAssets folder? That's for those cases I think. https://docs.unity3d.com/Manual/StreamingAssets.html https://docs.unity3d.com/ScriptReference/Application-streamingAssetsPath.html

View Article

Answer by Jason 15

The only way I've found so far is to put your file(s) in the root of the Plugins directory and append the '.dll' extension to them, even if they're not dlls. For example, if you have text.xml then name...

View Article

Answer by Clem

You could write a custom build script that copies the file(s) for you. Something like:string[] scenes = {"Assets/myScene.unity"}; BuildPipeline.BuildPlayer(scenes , "Build/game.unity3d",...

View Article


Answer by castor

Why not use the StreamingAssets folder? That's for those cases I think. https://docs.unity3d.com/Manual/StreamingAssets.html https://docs.unity3d.com/ScriptReference/Application-streamingAssetsPath.html

View Article

Browsing all 9 articles
Browse latest View live




Latest Images