IProjectFile interface
The IProjectFile interface represents a project file added in the Project Bar in Construct.
Methods
- GetName()
- Return the filename of the project file.
- GetPath()
- Return the full path to the project file, including any subfolders, separated by forwards slashes. The path returned matches its location after exporting the project, which may mean the subfolder path does not exactly match its location in the Project Bar. For example a file named music.webm in the Music folder of the Project Bar will have a path of
"media/music.webm". However files in the general-purpose Files folder are always relative to the root folder, so no additional subfolders will appear in the path.
- GetProject()
- Return the IProject the project file belongs to.
- GetBlob()
- Return a Blob representing the contents of the file. The standard web APIs for reading blobs can be used to access the content.
Addon SDK Manual
Construct.net
2020-11-16
2025-12-17
You are here:
Search this manual:
This manual entry was last updated on 17 Dec, 2025 at 18:06