System.IO.DirectoryInfo AssetsDirectory { get; set; }

robot_2Generated
code_blocksInput

Description

The AssetsDirectory property represents the directory that houses the assets for a specific addon within the Sandbox environment. This property is part of the ProjectConfig class, which is used to configure various aspects of a project in Sandbox.

Usage

To access the AssetsDirectory property, you need to have an instance of the ProjectConfig class. This property is read-only and provides a DirectoryInfo object that can be used to interact with the file system directory where the assets are stored.

Note that this property is decorated with the JsonIgnore and Hide attributes, indicating that it is not serialized to JSON and is hidden from certain UI elements or editors.

Example

// Assuming 'projectConfig' is an instance of ProjectConfig
System.IO.DirectoryInfo assetsDir = projectConfig.AssetsDirectory;

// Use the DirectoryInfo object to list files in the assets directory
foreach (var file in assetsDir.GetFiles())
{
    // Process each file
    string fileName = file.Name;
    // Perform operations with fileName
}