Hi,
I have a specific requirement.
In my tizen native app i have a local html file which i will place in /res folder and access it by using app_get_resource_path().
How could i do that in a unity app. I mean where should i place the html file in unity game, so that it will get copied to /res folder of tizen package.
regards
Sriram.
I think the better route would be to include the HTML file in your project and load it as a Text Asset. Check out this manual page for more info. Unity - Manual: Text assets
Let me explain you my usecase clearly.
I am working on developing a plugin for unity in tizen. And i need to access the html file provided by Unity in Tizen (infact any file added in unity app resources in tizen).
Steps:
- Unity is having a image or html file added in its Assets folder
- The unity application will call the API exposed by my Tizen Plugin giving the file path
- The shared library in Tizen, should be able to use the file provided by unity
Right now i can see that the TextAsset file added in Asset folder of unity app is not copied to any folder of tizen tpk package.
Does your plugin need a file or can it function with just the HTML contained in the file? TextAssets get serialized like other assets but you can ask Unity for the asset via the asset name. Then get the raw text of the asset.