Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

FilePathAttribute

A topic by CatyboyStudio created Oct 14, 2022 Views: 77
Viewing posts 1 to 1

Used for string fields, provides a selection dialog box for file paths, and supports drag-and-drop

[FilePath]
public string Value1;

Instruction:

  • By default, [FilePath] provides a path relative to the project.Set “AbsolutePath“ to true, will provide an absolute path.
  • Set “ParentFolder“ to provide a parent path by default
  • Set “Extensions“ to filter by extension
  • By setting “AbsolutePath“ to true, FolderPath will provide an absolute path.
  • By setting “RequireExistsPath“ to true, you can verify the exists of [FilePath]
  • By default, [FolderPath] uses the front slash. It can also be configured to use backslashes via “UseBackslashes“.