Class FurnitureBuilder
Creates procedural furniture pieces. Extracted from SemanticBuildingBuilder for SRP compliance.
public sealed class FurnitureBuilder
- Inheritance
-
FurnitureBuilder
- Inherited Members
Constructors
FurnitureBuilder(Transform, BuildingPalette)
Create a new furniture builder.
public FurnitureBuilder(Transform parent, BuildingPalette palette)
Parameters
parentTransformParent transform for furniture
paletteBuildingPaletteMaterial and color palette
Methods
Create(FurnitureType, Vector3, Quaternion, Color?)
Create a furniture piece at the specified position.
public GameObject Create(FurnitureType type, Vector3 position, Quaternion rotation, Color? color = null)
Parameters
typeFurnitureTypeType of furniture to create
positionVector3Local position
rotationQuaternionLocal rotation
colorColor?Optional color override (uses palette accent if null)
Returns
- GameObject
The created furniture GameObject
GetFootprint(FurnitureType)
Get the approximate footprint of a furniture piece for layout calculations.
public static Vector3 GetFootprint(FurnitureType type)
Parameters
typeFurnitureTypeType of furniture
Returns
- Vector3
Approximate size (width, height, depth)