Class ImporterGraphOverrideContainer
This class is serialized as part of the ModularImporterEditor to keep track of which override value is actually a local override or a default value from the base graph. It has its own PropertyDrawer to display each value in our inspector.
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<ImporterGraphOverrideContainer.GraphValueState> | 
See Also
Methods
CreateOverrideContainer(ImporterGraph, IEnumerable<IGraphValue>)
Creates a new ImporterGraphOverrideContainer
populated with all the ImportSetting<T> from the given graph
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 ImporterGraph and a ModularImporter.
Declaration
public static ImporterGraphOverrideContainer CreateOverrideContainer(ImporterGraph graph, IEnumerable<IGraphValue> overrides)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ImporterGraph | graph | The reference ImporterGraph that contains all the settings.  | 
      
| IEnumerable<IGraphValue> | overrides | List of override settings, usually coming from a ModularImporter.  | 
      
Returns
| Type | Description | 
|---|---|
| ImporterGraphOverrideContainer | A new instance of the container with all the settings and their overridden status.  | 
      
See Also
UpdateImporterGraphOverride(ImporterGraph, IEnumerable<IGraphValue>, ImporterGraphOverrideContainer)
Updates an existing ImporterGraphOverrideContainer with new values from an ImporterGraph and its overridden values.
Declaration
public static void UpdateImporterGraphOverride(ImporterGraph graph, IEnumerable<IGraphValue> overrides, ImporterGraphOverrideContainer container)
  Parameters
| Type | Name | Description | 
|---|---|---|
| ImporterGraph | graph | The ImporterGraph to use as a reference for its ImportSetting<T>.  | 
      
| IEnumerable<IGraphValue> | overrides | List of override settings, usually coming from a ModularImporter.  | 
      
| ImporterGraphOverrideContainer | container | The container to update with the graph and overrides values.  |