docs.unity3d.com
    Show / Hide Table of Contents

    Class ProductSettings

    The product is the entry point for all components relevant to product. The Product class contains information about a single configurable product: identifiers (an internal ID, and/or the product name); the collection of contexts in which the product is available; a list of initial/default configurations for this product; the Variant Table, containing all possible variants; the local staging variants (environments, camera angles, etc.).

    Inheritance
    Object
    Object
    Component
    Behaviour
    MonoBehaviour
    ProductSettings
    Inherited Members
    MonoBehaviour.IsInvoking()
    MonoBehaviour.CancelInvoke()
    MonoBehaviour.Invoke(String, Single)
    MonoBehaviour.InvokeRepeating(String, Single, Single)
    MonoBehaviour.CancelInvoke(String)
    MonoBehaviour.IsInvoking(String)
    MonoBehaviour.StartCoroutine(String)
    MonoBehaviour.StartCoroutine(String, Object)
    MonoBehaviour.StartCoroutine(IEnumerator)
    MonoBehaviour.StartCoroutine_Auto(IEnumerator)
    MonoBehaviour.StopCoroutine(IEnumerator)
    MonoBehaviour.StopCoroutine(Coroutine)
    MonoBehaviour.StopCoroutine(String)
    MonoBehaviour.StopAllCoroutines()
    MonoBehaviour.print(Object)
    MonoBehaviour.useGUILayout
    MonoBehaviour.runInEditMode
    Behaviour.enabled
    Behaviour.isActiveAndEnabled
    Component.GetComponent(Type)
    Component.GetComponent<T>()
    Component.TryGetComponent(Type, Component)
    Component.TryGetComponent<T>(T)
    Component.GetComponent(String)
    Component.GetComponentInChildren(Type, Boolean)
    Component.GetComponentInChildren(Type)
    Component.GetComponentInChildren<T>(Boolean)
    Component.GetComponentInChildren<T>()
    Component.GetComponentsInChildren(Type, Boolean)
    Component.GetComponentsInChildren(Type)
    Component.GetComponentsInChildren<T>(Boolean)
    Component.GetComponentsInChildren<T>(Boolean, List<T>)
    Component.GetComponentsInChildren<T>()
    Component.GetComponentsInChildren<T>(List<T>)
    Component.GetComponentInParent(Type)
    Component.GetComponentInParent<T>()
    Component.GetComponentsInParent(Type, Boolean)
    Component.GetComponentsInParent(Type)
    Component.GetComponentsInParent<T>(Boolean)
    Component.GetComponentsInParent<T>(Boolean, List<T>)
    Component.GetComponentsInParent<T>()
    Component.GetComponents(Type)
    Component.GetComponents(Type, List<Component>)
    Component.GetComponents<T>(List<T>)
    Component.GetComponents<T>()
    Component.CompareTag(String)
    Component.SendMessageUpwards(String, Object, SendMessageOptions)
    Component.SendMessageUpwards(String, Object)
    Component.SendMessageUpwards(String)
    Component.SendMessageUpwards(String, SendMessageOptions)
    Component.SendMessage(String, Object)
    Component.SendMessage(String)
    Component.SendMessage(String, Object, SendMessageOptions)
    Component.SendMessage(String, SendMessageOptions)
    Component.BroadcastMessage(String, Object, SendMessageOptions)
    Component.BroadcastMessage(String, Object)
    Component.BroadcastMessage(String)
    Component.BroadcastMessage(String, SendMessageOptions)
    Component.transform
    Component.gameObject
    Component.tag
    Component.rigidbody
    Component.rigidbody2D
    Component.camera
    Component.light
    Component.animation
    Component.constantForce
    Component.renderer
    Component.audio
    Component.networkView
    Component.collider
    Component.collider2D
    Component.hingeJoint
    Component.particleSystem
    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, Boolean)
    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, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, Boolean)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindObjectOfType(Type, Boolean)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: UnityEngine.Industrial.Configuring.Core
    Syntax
    [DisallowMultipleComponent]
    [ExecuteInEditMode]
    public class ProductSettings : MonoBehaviour

    Fields

    forceSaveBeforePlayMode

    The force save before play mode

    Declaration
    [SerializeField]
    [HideInInspector]
    public bool forceSaveBeforePlayMode
    Field Value
    Type Description
    Boolean

    isDirty

    The is dirty

    Declaration
    [SerializeField]
    [Tooltip("Whether this product needs to be saved or not.")]
    public bool isDirty
    Field Value
    Type Description
    Boolean

    product

    The product

    Declaration
    [HideInInspector]
    [SerializeField]
    public Product product
    Field Value
    Type Description
    Product

    settingsName

    The settings name

    Declaration
    public const string settingsName = "settings"
    Field Value
    Type Description
    String

    Properties

    contextCollection

    Context collection belonging to this product.

    Declaration
    public ContextCollection contextCollection { get; }
    Property Value
    Type Description
    ContextCollection

    The context collection.

    defaults

    Default configurations: each context can have a default configuration that is used as the basis before switching the model. Default configurations represent the initial state of a product for a given context. Normally, users do not select every single variant of a product, especially at the beginning of the configuration: in most cases, they only broadly select the product line and they can already see an initial, default configuration. The configuration workflow then builds upon this initial, default configuration

    Declaration
    public IReadOnlyDictionary<Context, Configuration> defaults { get; }
    Property Value
    Type Description
    IReadOnlyDictionary<Context, Configuration>

    The defaults.

    localPriceData

    Gets the local price data.

    Declaration
    public ProductLocalPrice localPriceData { get; }
    Property Value
    Type Description
    ProductLocalPrice

    The local price data.

    presets

    Preset configurations for this product.

    Declaration
    public ReadOnlyCollection<Configuration> presets { get; }
    Property Value
    Type Description
    ReadOnlyCollection<Configuration>

    The presets.

    rules

    Gets the rules.

    Declaration
    public Rules rules { get; }
    Property Value
    Type Description
    Rules

    The rules.

    runtimeUIData

    Gets the runtime UI data.

    Declaration
    public ProductRuntimeUIData runtimeUIData { get; }
    Property Value
    Type Description
    ProductRuntimeUIData

    The runtime UI data.

    spawnPoint

    Gets or sets the spawn point.

    Declaration
    public Transform spawnPoint { get; set; }
    Property Value
    Type Description
    Transform

    The spawn point.

    stagingSettings

    Gets the staging settings.

    Declaration
    public StagingSettings stagingSettings { get; }
    Property Value
    Type Description
    StagingSettings

    The staging settings.

    variantTable

    Variant table belonging to this product.

    Declaration
    public VariantTable variantTable { get; }
    Property Value
    Type Description
    VariantTable

    The variant table.

    Methods

    AddDefault(Context)

    Adds a default configuration to the set of defaults.

    Declaration
    public Configuration AddDefault(Context context)
    Parameters
    Type Name Description
    Context context

    The context.

    Returns
    Type Description
    Configuration

    Creates a new (blank) configuration that is the default for this context.

    Remarks

    The

    context
    must be part of the ContextCollection

    Exceptions
    Type Condition
    ArgumentNullException

    The context must not be null.

    ArgumentException

    The context is not part of the context collection.

    AddPreset()

    Creates and adds a new preset configuration.

    Declaration
    public Configuration AddPreset()
    Returns
    Type Description
    Configuration

    Configuration.

    Awake()

    Awakes this instance.

    Declaration
    public void Awake()

    CreateSpawnPoint()

    Creates the spawn point.

    Declaration
    public void CreateSpawnPoint()

    IsConfiguratorHiddenObject(GameObject)

    Determines whether [is configurator hidden object] [the specified object].

    Declaration
    public bool IsConfiguratorHiddenObject(GameObject obj)
    Parameters
    Type Name Description
    GameObject obj

    The object.

    Returns
    Type Description
    Boolean

    true if [is configurator hidden object] [the specified object]; otherwise, false.

    OnDisable()

    Called when [disable].

    Declaration
    public void OnDisable()

    OnEnable()

    Called when [enable].

    Declaration
    public void OnEnable()

    OnValidate()

    Called when [validate].

    Declaration
    public void OnValidate()

    RemoveDefault(Context)

    Remove a default configuration from the set of defaults.

    Declaration
    public void RemoveDefault(Context context)
    Parameters
    Type Name Description
    Context context

    The context.

    Exceptions
    Type Condition
    ArgumentNullException

    The context must not be null.

    ArgumentException

    The context is not part of the context collection.

    RemovePreset(Configuration)

    Removes the configuration from the presets and destroys it.

    Declaration
    public void RemovePreset(Configuration preset)
    Parameters
    Type Name Description
    Configuration preset

    The preset.

    Exceptions
    Type Condition
    ArgumentNullException

    The preset cannot be null.

    ArgumentException

    The configuration is not a preset of this product.

    Extension Methods

    Async.StartThrowingCoroutine(MonoBehaviour, IEnumerator, Action<Exception>)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023