Application:getNativePath

From GiderosMobile
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Available since: Gideros 2021.10
Class: Application

Description

Returns the system path for a given resource.

(string) = application:getNativePath(path)

Parameters

path: (string) path to an application local resource

Return values

Returns (string) the native path of the given resource

Example

local imgpath = application:getNativePath("gfx/myimage.png") -- image in /gfx project folder
print(imgpath) -- "C:/Users/xxx/AppData/Local/Temp/gideros/YYY/resource/gfx/myimage.png"