Struct SequencedPathName
Utility class to generate filenames with a sequence number.
Namespace: Unity.Simulation
Syntax
public struct SequencedPathName
Constructors
SequencedPathName(String, Boolean)
Constructs a SequencePathName object with path, and optional sequence number.
Declaration
public SequencedPathName(string path, bool addSequenceNumber)
Parameters
| Type | Name | Description |
|---|---|---|
| String | path | The path to the file on the local file system.. |
| Boolean | addSequenceNumber | When true, appends an auto incrementing sequence number before the extension. |
Methods
GetPath()
Get a full path to the file with sequence number appended if addSequence number is enabled.
Declaration
public string GetPath()
Returns
| Type | Description |
|---|---|
| String | string of the path to the file |