Class ProductCache
Class ProductCache.
Namespace: Unity.Industrial.Forma.Core.AddressableSources
Syntax
public class ProductCache : object
Constructors
ProductCache()
Initializes a new instance of the ProductCache class.
Declaration
public ProductCache()
Fields
items
The items
Declaration
public List<ProductCacheItem> items
Field Value
| Type | Description | 
|---|---|
| List<ProductCacheItem> | 
useCache
The use cache
Declaration
public ProductCache.CacheUsage useCache
Field Value
| Type | Description | 
|---|---|
| ProductCache.CacheUsage | 
usingCache
The using cache
Declaration
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 | 
  | 
IsUsing()
Determines whether this instance is using.
Declaration
public bool IsUsing()
Returns
| Type | Description | 
|---|---|
| Boolean | 
  | 
OnValidate()
Called when [validate].
Declaration
public void OnValidate()
ShouldCache()
Shoulds the cache.
Declaration
public bool ShouldCache()
Returns
| Type | Description | 
|---|---|
| Boolean | 
  |