docs.unity3d.com
    Show / Hide Table of Contents

    Class ProductCache

    Class ProductCache.

    Inheritance
    Object
    ProductCache
    Namespace: UnityEngine.Industrial.Configuring.ConfiguratorRuntime
    Syntax
    [Serializable]
    public class ProductCache

    Constructors

    ProductCache()

    Initializes a new instance of the ProductCache class.

    Declaration
    public ProductCache()

    Fields

    items

    The items

    Declaration
    [SerializeField]
    public List<ProductCacheItem> items
    Field Value
    Type Description
    List<ProductCacheItem>

    useCache

    The use cache

    Declaration
    [SerializeField]
    public ProductCache.CacheUsage useCache
    Field Value
    Type Description
    ProductCache.CacheUsage

    usingCache

    The using cache

    Declaration
    [Tooltip("Field showing if the cache is currently being used.")]
    public bool usingCache
    Field Value
    Type Description
    Boolean

    Methods

    Add(Product, AssetProductReference)

    Adds the specified product.

    Declaration
    public void Add(Product product, AssetProductReference prefab)
    Parameters
    Type Name Description
    Product product

    The product.

    AssetProductReference prefab

    The prefab.

    IsInCache(AssetProductReference, out ProductCacheItem)

    Determines whether [is in cache] [the specified prefab].

    Declaration
    public bool IsInCache(AssetProductReference prefab, out ProductCacheItem cacheItem)
    Parameters
    Type Name Description
    AssetProductReference prefab

    The prefab.

    ProductCacheItem cacheItem

    The cache item.

    Returns
    Type Description
    Boolean

    true if [is in cache] [the specified prefab]; otherwise, false.

    IsUsing()

    Determines whether this instance is using.

    Declaration
    public bool IsUsing()
    Returns
    Type Description
    Boolean

    true if this instance is using; otherwise, false.

    OnValidate()

    Called when [validate].

    Declaration
    public void OnValidate()

    ShouldCache()

    Shoulds the cache.

    Declaration
    public bool ShouldCache()
    Returns
    Type Description
    Boolean

    true if XXXX, false otherwise.

    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