docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX
    on 03 March 2021