Class ProductVariantProfile
Class ProductVariantProfile.
Namespace: Unity.Industrial.Forma.Core.Profiles
Syntax
[MovedFrom(true, "UnityEngine.Industrial.Configuring.Core", "Unity.Industrial.Configurator", null)]
[Serializable]
public class ProductVariantProfile : IDisplayableProfileCard
Constructors
ProductVariantProfile(String, AssetProductReference, RenderPipelineType)
Initializes a new instance of the ProductVariantProfile class.
Declaration
public ProductVariantProfile(string label, AssetProductReference product, RenderPipelineType renderPipelineType)
Parameters
Type | Name | Description |
---|---|---|
String | label | The label. |
AssetProductReference | product | The product. |
RenderPipelineType | renderPipelineType | The renderpipeline this product uses. |
ProductVariantProfile(RenderPipelineType)
Initializes a new instance of the ProductVariantProfile class.
Declaration
public ProductVariantProfile(RenderPipelineType renderPipelineType)
Parameters
Type | Name | Description |
---|---|---|
RenderPipelineType | renderPipelineType |
Fields
id
The identifier
Declaration
[Tooltip("Unique id for this product profile.")]
[SerializeField]
public string id
Field Value
Type | Description |
---|---|
String |
materialResourcesFolders
The material resources folders
Declaration
[SerializeField]
public List<string> materialResourcesFolders
Field Value
Type | Description |
---|---|
List<String> |
playableResourcesFolder
For playables (timeline, etc) unique to this model
Declaration
[SerializeField]
public string playableResourcesFolder
Field Value
Type | Description |
---|---|
String |
product
The product
Declaration
[SerializeField]
public AssetProductReference product
Field Value
Type | Description |
---|---|
AssetProductReference |
shouldRefreshMaterials
The should refresh materials
Declaration
[SerializeField]
public bool shouldRefreshMaterials
Field Value
Type | Description |
---|---|
Boolean |
Properties
Label
Gets or sets the label.
Declaration
public string Label { get; set; }
Property Value
Type | Description |
---|---|
String | The label. |
Product
Gets the product.
Declaration
public Product Product { get; }
Property Value
Type | Description |
---|---|
Product | The product. |
SupportedRenderPipeline
Pipelines supported by this profile
Declaration
public RenderPipelineType SupportedRenderPipeline { get; }
Property Value
Type | Description |
---|---|
RenderPipelineType |
Methods
GetThumbnail()
Thumbnails this instance.
Declaration
public Texture2D GetThumbnail()
Returns
Type | Description |
---|---|
Texture2D | Texture2D. |
ResetId()
Resets the identifier.
Declaration
public void ResetId()