Skip to main content

BottleLiquidMaterialCreator

A class in Root.Township, Alta.Liquid.

Makes the liquid material for bottled liquid (BottledLiquid), with properties for the liquid's colour and fill plane.

Constructors​

MemberWhat it is
BottleLiquidMaterialCreator()Creates a BottleLiquidMaterialCreator with default values.

Fields​

3 private and internal fields
MemberWhat it is
private Vector3MaterialProperty anchorBacking field for Anchor.
private ColorMaterialProperty liquidColorBacking field for LiquidColor.
private Vector3MaterialProperty pointBacking field for Point.

Properties​

MemberWhat it is
Vector3MaterialProperty Anchor { get; }The _Anchor shader property, set to the bottle's up direction.
ColorMaterialProperty LiquidColor { get; }The _Color shader property.
Vector3MaterialProperty Point { get; }The _Point shader property, set to up times the fill level.

Methods​

MemberWhat it is
override Material CreateMaterial(LiquidVisualData settings, Material materialTemplate)Copies the template and sets the liquid colour on it.

Used in​

Members of other types that take, return or hold a BottleLiquidMaterialCreator: