Class AssetUtils
AssetUtils class handles parsing of a text asset files to extract node attributes.
Namespace: Mechatronics.SystemGraph
Syntax
public class AssetUtils
Fields
ProjectAssemblies
The project assemblies
Declaration
public static Assembly[] ProjectAssemblies
Field Value
| Type | Description |
|---|---|
| Assembly[] |
Methods
ExtractNodeCategoryNameFromText(String)
This function only extracts Category and Name from a source file.
Declaration
public static List<NodeCategoryAttribute> ExtractNodeCategoryNameFromText(string source)
Parameters
| Type | Name | Description |
|---|---|---|
| String | source | The source. |
Returns
| Type | Description |
|---|---|
| List<NodeCategoryAttribute> | List<NodeCategoryAttribute>. |
GetNodeAssetPath(NodeRuntime, ref TextAsset)
Gets the node asset path.
Declaration
public static string GetNodeAssetPath(NodeRuntime node, ref TextAsset txtAsset)
Parameters
| Type | Name | Description |
|---|---|---|
| NodeRuntime | node | The node. |
| TextAsset | txtAsset | The text asset. |
Returns
| Type | Description |
|---|---|
| String | System.String. |