Method Get
Get<T>(string[])
Get data from a query path array
Declaration
public static T Get<T>(string[] path) where T : class
Parameters
Type | Name | Description |
---|---|---|
string[] | path | Main query path |
Returns
Type | Description |
---|---|
T | Query result, related to type T |
Type Parameters
Name | Description |
---|---|
T | Type to extract from the query result |
Get<T>(string)
Get data from a query path string Query format: g:[graphName] (graphName is the file part of the filename) gi:[InstanceID] (Find graph asset from instanceID, can only find object instance, NOT the asset itself, always use the runtime graph instanceid here) gg:[graphDatabaseGUID] (Graph from the AssetDatabase GUID) gn:[graphNodeGUID] (The graph asset is deduced from a graph node) gni:[index] (Search graph node by index of creation in the asset, the function returns null when not found) gnic:[index] (Search graph node by index of creation in the asset in subgraph create new instance mode, the function returns null when not found) ng:[NodeGUID] (NodeGUID of SerializeNode) ni:[NodeIndex] (Retrieve Node by Index) e:[SrcPortName+DstPortName] (Retrieve edge) ef:[SrcPortName+DstPortName] (Retrieve edge, sNode points to connected node) pg:[ParameterGUID] (Retrieve Parameter by GUID) pn:[ParameterName] (Retrieve Parameter by Name) pi:[ParameterIndex] (Retrieve Parameter by Index) bn:[BindingName] (Retrieve the Binding name)
Declaration
public static T Get<T>(string queryPath) where T : class
Parameters
Type | Name | Description |
---|---|---|
string | queryPath | The query path. |
Returns
Type | Description |
---|---|
T | Query result, related to type T |
Type Parameters
Name | Description |
---|---|
T | Type to extract from the query result |