Skip to main content

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

FolderPathAttribute

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

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

[FolderPath]
public string Value1;

Instruction:

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