docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    Object
    ScriptableObject
    ImporterGraphOverrideContainer
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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
    ModularImporterEditor

    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
    ModularImporterEditor

    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.

    See Also
    ModularImporterEditor

    See Also

    ModularImporterEditor
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)