+-----+-----------+-----+
/_____/___________/_____/|
/_____/___________/_____/||
/ / / /|||
+-----+-----------+-----+ |||
| A | B | C |/|||
+-----+-----------+-----+ |||
| | | | |||
| D | E | F | |||
| | | |/||/
+-----+-----------+-----+ |/
| G | H | I | /
+-----+-----+-----+-----+BorderXNegative
: float |
Specifies the proportion of the mesh along the negative X-axis that is protected from scaling.
Signature
float BorderXNegative |
BorderXPositive
: float |
Specifies the proportion of the mesh along the positive X-axis that is protected from scaling.
Signature
float BorderXPositive |
BorderYNegative
: float |
Specifies the proportion of the mesh along the negative Y-axis that is protected from scaling.
Signature
float BorderYNegative |
BorderYPositive
: float |
Specifies the proportion of the mesh along the positive Y-axis that is protected from scaling.
Signature
float BorderYPositive |
BorderZNegative
: float |
Specifies the proportion of the mesh along the negative Z-axis that is protected from scaling.
Signature
float BorderZNegative |
BorderZPositive
: float |
Specifies the proportion of the mesh along the positive Z-axis that is protected from scaling.
Signature
float BorderZPositive |
OriginalMesh
: Mesh |
The original mesh before any modifications.
This mesh is used as the baseline for all scaling operations
Signature
Mesh OriginalMesh |
PivotOffset
: Vector3 |
Represents the offset from the pivot point of the mesh.
This offset is used to adjust the origin of scaling operations.
Signature
Vector3 PivotOffset |
ScalingX
: Method |
Specifies the proportion of the mesh along the positive X-axis that is protected from scaling.
Signature
Method ScalingX |
ScalingY
: Method |
Defines the scaling method to be applied along the Y-axis of the mesh.
Signature
Method ScalingY |
ScalingZ
: Method |
Defines the scaling method to be applied along the Z-axis of the mesh.
Signature
Method ScalingZ |
StretchCenter
: StretchCenterAxis |
Specifies which axes should allow the center part of the object to stretch.
This setting is used to control the stretching behavior of the central section of the mesh allowing for selective stretching along specified axes.
Signature
StretchCenterAxis StretchCenter |
UpdateInPlayMode
: bool |
Indicates whether the resizer should update the mesh in play mode.
When set to true, the mesh will continue to be updated based on the scaling settings during runtime. This can be useful for dynamic scaling effects but may impact performance if used excessively. When instantiating prefab through the AnchorPrefabSpawner component, this property should be set to true. ///
Signature
bool UpdateInPlayMode |
ProcessVertices
()
|
Processes the vertices of the given mesh, applying scaling and border adjustments.
This function is expensive, as it access and modifies each vertex of the mesh. Avoid calling it every frame.
Signature
Mesh ProcessVertices() Returns Mesh
A new Mesh with processed vertices.
|
| Member |
|---|
SLICE |
SLICE_WITH_ASYMMETRICAL_BORDER |
SCALE |
| Member | Value |
|---|---|
X | 1 << 0 |
Y | 1 << 1 |
Z | 1 << 2 |