Unity HDRP Product Visualizer 1.0.0
Interactive 3D product showcase built with Unity 6 and HDRP
Loading...
Searching...
No Matches
CanVariant Class Reference

Data container that pairs a brand label material with an aluminium cap material. More...

Public Attributes

string variantName
 Human-readable brand name shown in the on-screen UI.
 
Material labelMaterial
 HDRP/Lit material applied to slot 0 (the printable label area).
 
Material capMaterial
 HDRP/Lit material applied to slot 1 (the aluminium top and bottom caps).
 

Detailed Description

Data container that pairs a brand label material with an aluminium cap material.

Instances of this class are authored in the Inspector or populated at edit-time by ProductVisualizerSetup. Each variant corresponds to one physical brand (Coca-Cola, Pepsi, etc.).

Definition at line 16 of file CanMaterialSwapper.cs.

Member Data Documentation

◆ capMaterial

Material CanVariant.capMaterial

HDRP/Lit material applied to slot 1 (the aluminium top and bottom caps).

Shared across all variants — high metallic, high smoothness.

Definition at line 27 of file CanMaterialSwapper.cs.

◆ labelMaterial

Material CanVariant.labelMaterial

HDRP/Lit material applied to slot 0 (the printable label area).

Typically has _BaseColorMap set to the brand artwork texture.

Definition at line 23 of file CanMaterialSwapper.cs.

◆ variantName

string CanVariant.variantName

Human-readable brand name shown in the on-screen UI.

Definition at line 19 of file CanMaterialSwapper.cs.


The documentation for this class was generated from the following file: