Class Formats
Static class for formats related information.
Inheritance
System.Object
Formats
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: PiXYZ.Import
Assembly: cs.temp.dll.dll
Syntax
public static class Formats
Fields
UnitySupportedFormats
Declaration
public static readonly HashSet<string> UnitySupportedFormats
Field Value
Type | Description |
---|---|
HashSet<System.String> |
Properties
SupportedFormatsForFileBrowser
Return an array of all supported formats, specially formatted for FileBrowsers.
Declaration
public static string[] SupportedFormatsForFileBrowser { get; }
Property Value
Type | Description |
---|---|
System.String[] |
SupportedFormatsGrouped
Returns a dictionary of all supported formats, where key is file type and value is corresponding extensions.
Declaration
public static Dictionary<string, string> SupportedFormatsGrouped { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.String> |
SupportedFormatsRegex
Returns a collection of all extensions formatted in a Regex.
Declaration
public static string SupportedFormatsRegex { get; }
Property Value
Type | Description |
---|---|
System.String |
SupportedFormatsScriptedImporter
Returns a collection of all extensions formatted as : . + lowercase extension.
Declaration
public static string[] SupportedFormatsScriptedImporter { get; }
Property Value
Type | Description |
---|---|
System.String[] |
Methods
GetExtension2(String)
Returns of the extension of a given file path. Format is of type ".xxx" where xxx is lowercase. This function, unlike Path.GetExtention, handles versionned extensions such as ".prt.2". In such cases, it returns ".prt".
Declaration
public static string GetExtension2(string file)
Parameters
Type | Name | Description |
---|---|---|
System.String | file |
Returns
Type | Description |
---|---|
System.String |
IsFileSupported(String, Boolean)
Returns true if the given file is supported, otherwise, returns false. Format is .*
Declaration
public static bool IsFileSupported(string file, bool liveSync = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | file | |
System.Boolean | liveSync |
Returns
Type | Description |
---|---|
System.Boolean |
IsPXZ(String)
Declaration
public static bool IsPXZ(string file)
Parameters
Type | Name | Description |
---|---|---|
System.String | file |
Returns
Type | Description |
---|---|
System.Boolean |