PreviewModel
AUTO-GENERATED FILE – DO NOT EDIT MANUALLY
This page documents the supported public API surface only. Private, internal, benchmark, test, and implementation-detail types are intentionally omitted.
Declaration
Summary
Represents a preview model for placement operations.
This class contains the visual and spatial data needed to render a preview of where a placeable object will be placed.
Metadata
Namespace: GridPlacement.Core.Types
Source File: cs/Core/Types/PreviewModel.cs
Assembly: GridPlacement.Core
Type: class
Constructors
PreviewModel
Initializes a new instance of the PreviewModel class.
Properties
Transform
Gets or sets the transform for the preview.
OccupiedCells
Gets or sets the list of grid cells that will be occupied.
IsValidPlacement
Gets or sets whether the placement is valid.
IsVisible
Gets or sets whether the preview should be visible.
ValidationStatus
Gets or sets the validation status code.
ValidationMessage
Gets or sets the validation message.
Methods
Visible
Creates a visible preview model with the specified transform and cells.
Parameters
| Name | Description |
|---|---|
transform | The transform for the preview. |
occupiedCells | The cells that will be occupied. |
isValid | Whether the placement is valid. |
validationStatus | The validation status code. |
validationMessage | The validation message. |
Returns
A new PreviewModel instance.
Hidden
Creates a hidden preview model.
Returns
A new hidden PreviewModel instance.