Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • deleteFile(filePath: string, resultVar: Variable): void
  • Delete a file from the filesystem.

    Parameters

    • filePath: string

      Path to the file

    • resultVar: Variable

      The variable where to store the result of the operation

    Returns void

  • deleteFileAsync(filePath: string, resultVar: Variable): void
  • Delete a file from the filesystem, asynchronously.

    Parameters

    • filePath: string

      Path to the file

    • resultVar: Variable

      The variable where to store the result of the operation

    Returns void

  • Get the path to 'Desktop' folder.

    Parameters

    Returns string

    The path to the desktop folder

  • getDirectoryName(fileOrFolderPath: string): string
  • Parameters

    • fileOrFolderPath: string

    Returns string

  • Get the path to 'Documents' folder.

    Parameters

    Returns string

    The path to the documents folder

  • Get the path to this application 'Executable' folder.

    Parameters

    Returns string

    The path to this applications executable folder

  • Get the path to this application 'Executable' file.

    Parameters

    Returns string

    The path to this applications executable file

  • getExtensionName(filePath: string): string
  • Parameters

    • filePath: string

    Returns string

  • getFileName(filePath: string): string
  • Parameters

    • filePath: string

    Returns string

  • getPathDelimiter(): string
  • Get the path delimiter specific to the operating system.

    Returns string

    The path delimiter

  • Get the path to 'Pictures' folder.

    Parameters

    Returns string

    The path to the pictures folder

  • Get the path to 'Temp' folder.

    Parameters

    Returns string

    The path to temp folder

  • Get the path to the user's home folder (on Windows C:\Users\<USERNAME>\ for example).

    Parameters

    Returns string

    The path to user's "home" folder

  • Get the path to 'UserData' folder.

    Parameters

    Returns string

    The path to userdata folder

  • loadStringFromFile(stringVar: Variable, loadPath: string, resultVar: Variable, removeCRCharacters: boolean): void
  • Load a string from a file into a scene variable.

    Parameters

    • stringVar: Variable

      Variable where to store the content

    • loadPath: string

      Path to the file

    • resultVar: Variable

      The variable where to store the result of the operation

    • removeCRCharacters: boolean

      If true, will remove \r characters usually added by Windows when editing files

    Returns void

  • loadStringFromFileAsync(stringVar: Variable, loadPath: string, resultVar: Variable, removeCRCharacters: boolean): void
  • Load a string from a file into a scene variable, asynchronously.

    Parameters

    • stringVar: Variable

      Variable where to store the content

    • loadPath: string

      Path to the file

    • resultVar: Variable

      The variable where to store the result of the operation

    • removeCRCharacters: boolean

      If true, will remove \r characters usually added by Windows when editing files

    Returns void

  • loadVariableFromJSONFile(variable: Variable, loadPath: string, resultVar: Variable, removeCRCharacters: boolean): void
  • Load a JSON file and convert it into a variable.

    Parameters

    • variable: Variable

      Variable to store the variable

    • loadPath: string

      Path to the file

    • resultVar: Variable

      The variable where to store the result of the operation

    • removeCRCharacters: boolean

      If true, will remove \r characters usually added by Windows when editing files

    Returns void

  • loadVariableFromJSONFileAsync(variable: Variable, loadPath: string, resultVar: Variable, removeCRCharacters: boolean): void
  • Load a JSON file and convert it into a variable, asynchronously.

    Parameters

    • variable: Variable

      Variable to store the variable

    • loadPath: string

      Path to the file

    • resultVar: Variable

      The variable where to store the result of the operation

    • removeCRCharacters: boolean

      If true, will remove \r characters usually added by Windows when editing files

    Returns void

  • makeDirectory(directory: string, resultVar: Variable): void
  • Create a new directory at the given path.

    Parameters

    • directory: string

      The path to create a new directory

    • resultVar: Variable

      The variable where to store the result of the operation

    Returns void

  • pathExists(filePath: string): boolean
  • Check if the file or directory exists.

    Parameters

    • filePath: string

      The path to the file or directory

    Returns boolean

    true if fhe file or directory exists

  • saveStringToFile(text: string, savePath: string, resultVar: Variable): void
  • Save a string into a file.

    Parameters

    • text: string

      The string to be saved

    • savePath: string

      Path to the file

    • resultVar: Variable

      The variable where to store the result of the operation

    Returns void

  • saveStringToFileAsync(text: string, savePath: string, resultVar: Variable): void
  • Save a string into a file, asynchronously.

    Parameters

    • text: string

      The string to be saved

    • savePath: string

      Path to the file

    • resultVar: Variable

      The variable where to store the result of the operation

    Returns void

  • saveVariableToJSONFile(variable: Variable, savePath: string, resultVar: Variable): void
  • Save a variable into a file in JSON format.

    Parameters

    • variable: Variable

      The variable to be saved

    • savePath: string

      Path to the file

    • resultVar: Variable

      The variable where to store the result of the operation

    Returns void

  • saveVariableToJSONFileAsync(variable: Variable, savePath: string, resultVar: Variable): void
  • Save a variable into a file in JSON format, asynchronously.

    Parameters

    • variable: Variable

      The variable to be saved

    • savePath: string

      Path to the file

    • resultVar: Variable

      The variable where to store the result of the operation

    Returns void

Generated using TypeDoc