Class ImporterGraphOverrideContainer
This class is serialized as part of the Modular
Inherited Members
Namespace: UnityEditor .Importer
Assembly: Unity.Importer.Editor.dll
Syntax
public class ImporterGraphOverrideContainer : ScriptableObject
Fields
values
List of importer settings and their current overridden state.
Declaration
public List<ImporterGraphOverrideContainer.GraphValueState> values
Field Value
Type | Description |
---|---|
List<Importer |
See Also
Methods
CreateOverrideContainer(ImporterGraph, IEnumerable<IGraphValue>)
Creates a new Importergraph
and its overridden values and states from the overrides
.
Use this method from an Editor to create a temporary container that allows to display the mixed values
from an Importer
Declaration
public static ImporterGraphOverrideContainer CreateOverrideContainer(ImporterGraph graph, IEnumerable<IGraphValue> overrides)
Parameters
Type | Name | Description |
---|---|---|
Importer |
graph | The reference Importer |
IEnumerable<IGraph |
overrides | List of override settings, usually coming from a Modular |
Returns
Type | Description |
---|---|
Importer |
A new instance of the container with all the settings and their overridden status. |
See Also
UpdateImporterGraphOverride(ImporterGraph, IEnumerable<IGraphValue>, ImporterGraphOverrideContainer)
Updates an existing Importer
Declaration
public static void UpdateImporterGraphOverride(ImporterGraph graph, IEnumerable<IGraphValue> overrides, ImporterGraphOverrideContainer container)
Parameters
Type | Name | Description |
---|---|---|
Importer |
graph | The Importer |
IEnumerable<IGraph |
overrides | List of override settings, usually coming from a Modular |
Importer |
container | The container to update with the graph and overrides values. |