Class ImporterGraph
This class represents an import process as a graph. INSERT-DOCUMENTATION-LINK
Inherited Members
Namespace: UnityEngine .Importer
Assembly: Unity.Importer.dll
Syntax
public class ImporterGraph : ScriptableObject
Properties
Edges
List of all Edge added to the Importer
Declaration
public IReadOnlyList<Edge> Edges { get; }
Property Value
Type | Description |
---|---|
IRead |
ImportConstants
List of all Import
Declaration
public IReadOnlyList<IConstantValue> ImportConstants { get; }
Property Value
Type | Description |
---|---|
IRead |
ImportSettings
List of all Import
Declaration
public IReadOnlyList<IGraphValue> ImportSettings { get; }
Property Value
Type | Description |
---|---|
IRead |
MainResult
The first Result
Declaration
public ResultEdge MainResult { get; }
Property Value
Type | Description |
---|---|
Result |
Nodes
List of all Node<TInput, TOutput> added to the Importer
Declaration
public IReadOnlyList<INode<InputPorts, OutputPorts>> Nodes { get; }
Property Value
Type | Description |
---|---|
IRead |
ResultEdges
List of all Result
Declaration
public IReadOnlyList<ResultEdge> ResultEdges { get; }
Property Value
Type | Description |
---|---|
IRead |
SettingEdges
List of all Setting
Declaration
public IReadOnlyList<SettingEdge> SettingEdges { get; }
Property Value
Type | Description |
---|---|
IRead |
Methods
AddEdge(Edge)
Add a valid Edge to the Importer
Declaration
public GraphValidationResult AddEdge(Edge edge)
Parameters
Returns
Type | Description |
---|---|
Graph |
The Graph |
AddImportConstant(IConstantValue)
Adds a Import
Declaration
public GraphValidationResult AddImportConstant(IConstantValue constant)
Parameters
Type | Name | Description |
---|---|---|
IConstant |
constant | The Import |
Returns
Type | Description |
---|---|
Graph |
The Graph |
AddImportSetting(IGraphValue)
Add a new Import
Declaration
public GraphValidationResult AddImportSetting(IGraphValue setting)
Parameters
Type | Name | Description |
---|---|---|
IGraph |
setting | The new setting to add to the Importer |
Returns
Type | Description |
---|---|
Graph |
The Graph |
Remarks
While the method is asking for an IGraph
AddNode(INode<InputPorts, OutputPorts>)
Add a valid INode<TInput, TOutput> to the Importer
Declaration
public GraphValidationResult AddNode(INode<InputPorts, OutputPorts> node)
Parameters
Type | Name | Description |
---|---|---|
INode<Input |
node | The INode<TInput, TOutput> to add. |
Returns
Type | Description |
---|---|
Graph |
The Graph |
AddResultEdge(ResultEdge)
Adds a Result
Declaration
public GraphValidationResult AddResultEdge(ResultEdge edge)
Parameters
Type | Name | Description |
---|---|---|
Result |
edge | The Result |
Returns
Type | Description |
---|---|
Graph |
The Graph |
AddSettingEdge(SettingEdge)
Adds a Setting
Declaration
public GraphValidationResult AddSettingEdge(SettingEdge edge)
Parameters
Type | Name | Description |
---|---|---|
Setting |
edge | The Setting |
Returns
Type | Description |
---|---|
Graph |
The Graph |
RemoveEdge(Edge)
Remove a valid Edge from the Importer
Declaration
public GraphValidationResult RemoveEdge(Edge edge)
Parameters
Returns
Type | Description |
---|---|
Graph |
The Graph |
RemoveImportConstant(IConstantValue)
Removes a Import
Declaration
public GraphValidationResult RemoveImportConstant(IConstantValue constant)
Parameters
Type | Name | Description |
---|---|---|
IConstant |
constant | The Import |
Returns
Type | Description |
---|---|
Graph |
The Graph |
RemoveImportSetting(IGraphValue)
Removes an Import
Declaration
public GraphValidationResult RemoveImportSetting(IGraphValue setting)
Parameters
Type | Name | Description |
---|---|---|
IGraph |
setting | The existing Import |
Returns
Type | Description |
---|---|
Graph |
The Graph |
Remarks
It's possible to gather all existing settings in the current Importer
RemoveNode(INode<InputPorts, OutputPorts>)
Remove a valid INode<TInput, TOutput> from the Importer
Declaration
public GraphValidationResult RemoveNode(INode<InputPorts, OutputPorts> node)
Parameters
Type | Name | Description |
---|---|---|
INode<Input |
node | The INode<TInput, TOutput> to remove. |
Returns
Type | Description |
---|---|
Graph |
The Graph |
RemoveResultEdge(ResultEdge)
Remove a Result
Declaration
public GraphValidationResult RemoveResultEdge(ResultEdge edge)
Parameters
Type | Name | Description |
---|---|---|
Result |
edge | The Result |
Returns
Type | Description |
---|---|
Graph |
The Graph |
RemoveSettingEdge(SettingEdge)
Remove a Setting
Declaration
public GraphValidationResult RemoveSettingEdge(SettingEdge edge)
Parameters
Type | Name | Description |
---|---|---|
Setting |
edge | The Setting |
Returns
Type | Description |
---|---|
Graph |
The Graph |
SetMainResultEdge(ResultEdge)
Set an existing Result
Declaration
public GraphValidationResult SetMainResultEdge(ResultEdge edge)
Parameters
Type | Name | Description |
---|---|---|
Result |
edge | The Result |
Returns
Type | Description |
---|---|
Graph |
The Graph |
Remarks
This method effectively set edge
as the first Result
Validate()
Validate this Importer
Declaration
public GraphValidationResult Validate()
Returns
Type | Description |
---|---|
Graph |
The Graph |